From: Arthur Date: Thu, 11 Feb 2016 19:07:16 +0000 (+0100) Subject: Merge pull request #473 from ArthurHoaro/commonhook-order X-Git-Tag: v0.6.4~16 X-Git-Url: https://git.immae.eu/?a=commitdiff_plain;h=2865118ca44661c7535aaf7b83e3b9222bc1f9a6;hp=250f132879bb7a1f7de4c8b87c5ceec5b4b72d14;p=github%2Fshaarli%2FShaarli.git Merge pull request #473 from ArthurHoaro/commonhook-order Common hooks: process includes before header/footer --- diff --git a/index.php b/index.php index 64ec809e..9785c419 100644 --- 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) {