Commit 7883c425 authored by Tino Goratsch's avatar Tino Goratsch

not use the include_js plugin anymore when just wanting to add a js lib

parent 3f41fc17
Pipeline #59798135 passed with stages
in 4 minutes and 49 seconds
......@@ -72,13 +72,9 @@ class IncludeJs
return '';
}
if (empty($dependencies)) {
throw new \InvalidArgumentException(
'Not all necessary arguments for the function ' . __FUNCTION__ . ' were passed!'
);
}
return '';
throw new \InvalidArgumentException(
'Not all necessary arguments for the function ' . __FUNCTION__ . ' were passed!'
);
}
/**
......
......@@ -17,9 +17,7 @@
class="img-thumbnail mb-1">
</a>
{/foreach}
{javascripts}
{include_js depends="fancybox"}
{/javascripts}
{js_libraries enable="fancybox"}
{else}
{foreach $pictures as $row}
<a href="{uri args="gallery/index/details/id_`$row.id`"}"
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment