Skip to content

Commit

Permalink
Merge pull request #4 from wanze/dev
Browse files Browse the repository at this point in the history
Dev
  • Loading branch information
wanze authored Mar 11, 2017
2 parents 7a4f276 + f67b4b2 commit 6253833
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions TemplateEngineFactory.module.php
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
*
* @author Stefan Wanzenried <[email protected]>
* @license http://www.gnu.org/licenses/gpl-2.0.txt GNU General Public License, version 2
* @version 1.1.0
* @version 1.1.1
*/
class TemplateEngineFactory extends WireData implements Module, ConfigurableModule
{
Expand Down Expand Up @@ -78,7 +78,7 @@ public function ready()
return;
}
$this->wire($this->get('api_var'), $engine);
$this->addHookAfter('Page::render', $this, 'hookRender');
$this->addHookAfter('Page::render', $this, 'hookRender', array('priority' => '100.01'));
// If the engine supports caching, attach hooks to clear the cache when saving/deleting pages
if (in_array('TemplateEngineCache', class_implements($engine))) {
$this->wire('pages')->addHookAfter('save', $this, 'hookClearCache');
Expand Down Expand Up @@ -282,7 +282,7 @@ public static function getModuleInfo()
{
return array(
'title' => 'Template Engine Factory',
'version' => 110,
'version' => 111,
'author' => 'Stefan Wanzenried',
'summary' => 'This module aims to separate logic from markup.' .
'Turns ProcessWire templates into controllers which can interact over a new API ' .
Expand Down

0 comments on commit 6253833

Please sign in to comment.