Skip to content
Snippets Groups Projects
Commit 69144f9c authored by Jan-Hendrik Willms's avatar Jan-Hendrik Willms
Browse files

clear layout attributes, re #4101

parent 04e8ec75
No related branches found
No related tags found
No related merge requests found
......@@ -30,6 +30,7 @@ if (Config::get()->BANNER_ADS_ENABLE) {
<li class="studip-widget-wrapper" id="<?= $widget->getPluginId() ?>">
<div class="ui-widget-content studip-widget">
<? if ($template = $widget->getPortalTemplate()): ?>
<? $widget_layout->clear_attributes() ?>
<? $template->set_layout($widget_layout) ?>
<?= $this->render_partial($template, compact('widget')) ?>
<? else: ?>
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment