]> git.immae.eu Git - github/shaarli/Shaarli.git/commitdiff
Merge pull request #473 from ArthurHoaro/commonhook-order
authorArthur <arthur@hoa.ro>
Thu, 11 Feb 2016 19:07:16 +0000 (20:07 +0100)
committerArthur <arthur@hoa.ro>
Thu, 11 Feb 2016 19:07:16 +0000 (20:07 +0100)
Common hooks: process includes before header/footer

index.php

index 64ec809e1817676adb07763f65551e65dc146439..9785c419e477ebc6404259fdd6961216b90cc453 100644 (file)
--- a/index.php
+++ b/index.php
@@ -1123,9 +1123,9 @@ function renderPage()
     // Call plugin hooks for header, footer and includes, specifying which page will be rendered.
     // Then assign generated data to RainTPL.
     $common_hooks = array(
+        'includes',
         'header',
         'footer',
-        'includes',
     );
     $pluginManager = PluginManager::getInstance();
     foreach($common_hooks as $name) {