Merge pull request #473 from ArthurHoaro/commonhook-order
Common hooks: process includes before header/footer
This commit is contained in:
commit
2865118ca4
1 changed files with 1 additions and 1 deletions
|
@ -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) {
|
||||||
|
|
Loading…
Reference in a new issue