diff options
author | Arthur <arthur@hoa.ro> | 2016-02-11 20:07:16 +0100 |
---|---|---|
committer | Arthur <arthur@hoa.ro> | 2016-02-11 20:07:16 +0100 |
commit | 2865118ca44661c7535aaf7b83e3b9222bc1f9a6 (patch) | |
tree | 84d6e4fc2a756b38df558c931559a00914a31ea2 /index.php | |
parent | 250f132879bb7a1f7de4c8b87c5ceec5b4b72d14 (diff) | |
parent | fea5db7ab127df30ed0b363faa43e570c0a470fa (diff) | |
download | Shaarli-2865118ca44661c7535aaf7b83e3b9222bc1f9a6.tar.gz Shaarli-2865118ca44661c7535aaf7b83e3b9222bc1f9a6.tar.zst Shaarli-2865118ca44661c7535aaf7b83e3b9222bc1f9a6.zip |
Merge pull request #473 from ArthurHoaro/commonhook-order
Common hooks: process includes before header/footer
Diffstat (limited to 'index.php')
-rw-r--r-- | index.php | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1123,9 +1123,9 @@ function renderPage() | |||
1123 | // Call plugin hooks for header, footer and includes, specifying which page will be rendered. | 1123 | // Call plugin hooks for header, footer and includes, specifying which page will be rendered. |
1124 | // Then assign generated data to RainTPL. | 1124 | // Then assign generated data to RainTPL. |
1125 | $common_hooks = array( | 1125 | $common_hooks = array( |
1126 | 'includes', | ||
1126 | 'header', | 1127 | 'header', |
1127 | 'footer', | 1128 | 'footer', |
1128 | 'includes', | ||
1129 | ); | 1129 | ); |
1130 | $pluginManager = PluginManager::getInstance(); | 1130 | $pluginManager = PluginManager::getInstance(); |
1131 | foreach($common_hooks as $name) { | 1131 | foreach($common_hooks as $name) { |