X-Git-Url: http://git.cyclocoop.org/?a=blobdiff_plain;f=includes%2Fskins%2FSkinTemplate.php;h=b4be46194960b3ee6accc91faa93413382521d68;hb=fe79bc528b0e054aa630bd4fcfcdd4a9804892da;hp=749a6860c39801bca4cd2b43b6995dc9b577a8b7;hpb=48e137b6f9a4fe1c0f685a449225ff4b9f8027dc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/skins/SkinTemplate.php b/includes/skins/SkinTemplate.php index 749a6860c3..b4be461949 100644 --- a/includes/skins/SkinTemplate.php +++ b/includes/skins/SkinTemplate.php @@ -478,6 +478,9 @@ class SkinTemplate extends Skin { $tpl->set( 'sidebar', $this->buildSidebar() ); $tpl->set( 'nav_urls', $this->buildNavUrls() ); + // Do this last in case hooks above add bottom scripts + $tpl->set( 'bottomscripts', $this->bottomScripts() ); + // Set the head scripts near the end, in case the above actions resulted in added scripts $tpl->set( 'headelement', $out->headElement( $this ) ); @@ -508,9 +511,6 @@ class SkinTemplate extends Skin { // See Skin::afterContentHook() for further documentation. $tpl->set( 'dataAfterContent', $this->afterContentHook() ); - // Do this last in case hooks above add bottom scripts - $tpl->set( 'bottomscripts', $this->bottomScripts() ); - return $tpl; }