Skip to content

Commit 85253d9

Browse files
authored
Lower hook priority so this module runs after Page::render and before other modules that use Page::render to add markup to pages
As requested from #2 here you go.
1 parent 7a4f276 commit 85253d9

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

TemplateEngineFactory.module.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public function ready()
7878
return;
7979
}
8080
$this->wire($this->get('api_var'), $engine);
81-
$this->addHookAfter('Page::render', $this, 'hookRender');
81+
$this->addHookAfter('Page::render', $this, 'hookRender', array('priority'=>'100.01'));
8282
// If the engine supports caching, attach hooks to clear the cache when saving/deleting pages
8383
if (in_array('TemplateEngineCache', class_implements($engine))) {
8484
$this->wire('pages')->addHookAfter('save', $this, 'hookClearCache');

0 commit comments

Comments
 (0)