diff --git a/classes/plugins/ThemePlugin.inc.php b/classes/plugins/ThemePlugin.inc.php index 0f13636228f..4a53036f388 100644 --- a/classes/plugins/ThemePlugin.inc.php +++ b/classes/plugins/ThemePlugin.inc.php @@ -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')); } /**