Skip to content

Commit

Permalink
pkp#3242 Fix broken direct intervention with Smarty::template_dir
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jan 5, 2018
1 parent 22dc671 commit 2c21b34
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions classes/plugins/ThemePlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -694,10 +694,7 @@ private function _registerTemplates() {
// Register this theme's template directory
$request = $this->getRequest();
$templateManager = TemplateManager::getManager($request);
array_unshift(
$templateManager->template_dir,
$this->_getBaseDir('templates')
);
$templateManager->addTemplateDir($this->_getBaseDir('templates'));
}

/**
Expand Down

0 comments on commit 2c21b34

Please sign in to comment.