From 9605fe0287c48688fb728589a1c842773d6745e5 Mon Sep 17 00:00:00 2001 From: Alec Smecher Date: Thu, 7 Jun 2018 11:27:30 -0700 Subject: [PATCH] pkp/pkp-lib#3242 Update for Smarty3 --- controllers/grid/EmailGridHandler.inc.php | 2 +- controllers/grid/LocaleFileGridHandler.inc.php | 2 +- controllers/grid/LocaleGridHandler.inc.php | 4 ++-- controllers/grid/MiscTranslationFileGridHandler.inc.php | 2 +- controllers/listbuilder/LocaleFileListbuilderHandler.inc.php | 4 ++-- 5 files changed, 7 insertions(+), 7 deletions(-) diff --git a/controllers/grid/EmailGridHandler.inc.php b/controllers/grid/EmailGridHandler.inc.php index 3ead235..9081c81 100644 --- a/controllers/grid/EmailGridHandler.inc.php +++ b/controllers/grid/EmailGridHandler.inc.php @@ -86,7 +86,7 @@ function edit($args, $request) { 'emailBody' => isset($emailData['body'])?$emailData['body']:'', 'emailDescription' => isset($emailData['description'])?$emailData['description']:'', )); - return $templateMgr->fetchJson(self::$plugin->getTemplatePath() . 'editEmail.tpl'); + return $templateMgr->fetchJson(self::$plugin->getTemplateResource('editEmail.tpl')); } /** diff --git a/controllers/grid/LocaleFileGridHandler.inc.php b/controllers/grid/LocaleFileGridHandler.inc.php index fbf22ce..1c2c108 100644 --- a/controllers/grid/LocaleFileGridHandler.inc.php +++ b/controllers/grid/LocaleFileGridHandler.inc.php @@ -73,7 +73,7 @@ function edit($args, $request) { $templateMgr = TemplateManager::getManager($request); $templateMgr->assign('locale', $this->locale); $templateMgr->assign('filename', $filename); - return $templateMgr->fetchJson(self::$plugin->getTemplatePath() . 'localeFile.tpl'); + return $templateMgr->fetchJson(self::$plugin->getTemplateResource('localeFile.tpl')); } /** diff --git a/controllers/grid/LocaleGridHandler.inc.php b/controllers/grid/LocaleGridHandler.inc.php index 90ae20c..5e99891 100644 --- a/controllers/grid/LocaleGridHandler.inc.php +++ b/controllers/grid/LocaleGridHandler.inc.php @@ -96,7 +96,7 @@ function getRowInstance() { function index($args, $request) { $templateMgr = TemplateManager::getManager($request); $templateMgr->assign('pluginJavaScriptURL', self::$plugin->getJavaScriptURL($request)); - return $templateMgr->fetchJson(self::$plugin->getTemplatePath() . 'locales.tpl'); + return $templateMgr->fetchJson(self::$plugin->getTemplateResource('locales.tpl')); } /** @@ -114,7 +114,7 @@ function edit($args, $request) { 'locale' => $locale, 'tabsSelector' => $this->tabsSelector )); - return $templateMgr->fetchJson(self::$plugin->getTemplatePath() . 'locale.tpl'); + return $templateMgr->fetchJson(self::$plugin->getTemplateResource('locale.tpl')); } /** diff --git a/controllers/grid/MiscTranslationFileGridHandler.inc.php b/controllers/grid/MiscTranslationFileGridHandler.inc.php index 5cd17eb..f4f4f31 100644 --- a/controllers/grid/MiscTranslationFileGridHandler.inc.php +++ b/controllers/grid/MiscTranslationFileGridHandler.inc.php @@ -65,7 +65,7 @@ function edit($args, $request) { 'referenceContents' => file_get_contents(str_replace($this->locale, MASTER_LOCALE, $filename)), 'fileContents' => file_exists($filename)?file_get_contents($filename):'', )); - return $templateMgr->fetchJson(self::$plugin->getTemplatePath() . 'editMiscFile.tpl'); + return $templateMgr->fetchJson(self::$plugin->getTemplateResource('editMiscFile.tpl')); } /** diff --git a/controllers/listbuilder/LocaleFileListbuilderHandler.inc.php b/controllers/listbuilder/LocaleFileListbuilderHandler.inc.php index 41e7e90..0c54c05 100644 --- a/controllers/listbuilder/LocaleFileListbuilderHandler.inc.php +++ b/controllers/listbuilder/LocaleFileListbuilderHandler.inc.php @@ -77,7 +77,7 @@ function initialize($request) { $this->addColumn(new ListbuilderGridColumn( $this, 'key', 'plugins.generic.translator.localeKey', null, - self::$plugin->getTemplatePath() . 'localeFileKeyGridCell.tpl', + self::$plugin->getTemplateResource('localeFileKeyGridCell.tpl'), $cellProvider, array('tabIndex' => 1) )); @@ -86,7 +86,7 @@ function initialize($request) { $this->addColumn(new ListbuilderGridColumn( $this, 'value', 'plugins.generic.translator.localeKeyValue', null, - self::$plugin->getTemplatePath() . 'localeFileValueGridCell.tpl', + self::$plugin->getTemplateResource('localeFileValueGridCell.tpl'), $cellProvider, array('tabIndex' => 2, 'width' => 70, 'alignment' => COLUMN_ALIGNMENT_LEFT) ));