Merge pull request #473 from ArthurHoaro/commonhook-order

Common hooks: process includes before header/footer
This commit is contained in:
Arthur 2016-02-11 20:07:16 +01:00
commit 2865118ca4

View file

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