Skip to content
This repository has been archived by the owner on Mar 6, 2020. It is now read-only.

Commit

Permalink
pkp/pkp-lib#3242 Update for Smarty3
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jun 7, 2018
1 parent 53c6830 commit 9605fe0
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion controllers/grid/EmailGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/LocaleFileGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions controllers/grid/LocaleGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand All @@ -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'));
}

/**
Expand Down
2 changes: 1 addition & 1 deletion controllers/grid/MiscTranslationFileGridHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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'));
}

/**
Expand Down
4 changes: 2 additions & 2 deletions controllers/listbuilder/LocaleFileListbuilderHandler.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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)
));
Expand All @@ -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)
));
Expand Down

0 comments on commit 9605fe0

Please sign in to comment.