Skip to content

Commit

Permalink
pkp/pkp-lib#3242 Fix plugin template name references
Browse files Browse the repository at this point in the history
  • Loading branch information
asmecher committed Jun 7, 2018
1 parent 9f95d16 commit d8b7e84
Show file tree
Hide file tree
Showing 8 changed files with 2 additions and 58 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -54,13 +54,6 @@ function getDescription() {
return __('plugins.generic.htmlMonographFile.description');
}

/**
* @copydoc Plugin::getTemplatePath()
*/
function getTemplatePath($inCore = false) {
return $this->getTemplateResourceName() . ':';
}

/**
* Callback to view the HTML content rather than downloading.
* @param $hookName string
Expand Down
7 changes: 0 additions & 7 deletions plugins/generic/pdfJsViewer/PdfJsViewerPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ function getContextSpecificPluginSettingsFile() {
return $this->getPluginPath() . '/settings.xml';
}

/**
* @copydoc PKPPlugin::getTemplatePath
*/
function getTemplatePath($inCore = false) {
return $this->getTemplateResourceName() . ':templates/';
}

/**
* Get the display name of this plugin.
* @return String
Expand Down
11 changes: 2 additions & 9 deletions plugins/importexport/native/NativeImportExportPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ function register($category, $path, $mainContextId = null) {
return $success;
}

/**
* @see Plugin::getTemplatePath($inCore)
*/
function getTemplatePath($inCore = false) {
return $this->getTemplateResourceName() . ':templates/';
}

/**
* Get the name of this plugin. The name must be unique within
* its category.
Expand Down Expand Up @@ -100,7 +93,7 @@ function display($args, $request) {
'lazyLoad' => true,
));
$templateMgr->assign('exportSubmissionsListData', json_encode($exportSubmissionsListHandler->getConfig()));
$templateMgr->display($this->getTemplateResourceName() . ':index.tpl');
$templateMgr->display($this->getTemplateResource('index.tpl'));
break;
case 'uploadImportXML':
$user = $request->getUser();
Expand Down Expand Up @@ -164,7 +157,7 @@ function display($args, $request) {
$deployment->removeImportedObjects(ASSOC_TYPE_SUBMISSION);
}
// Display the results
$json = new JSONMessage(true, $templateMgr->fetch($this->getTemplateResourceNamePath() . ':results.tpl'));
$json = new JSONMessage(true, $templateMgr->fetch($this->getTemplateResource('results.tpl')));
return $json->getString();
case 'export':
$exportXml = $this->exportSubmissions(
Expand Down
7 changes: 0 additions & 7 deletions plugins/importexport/onix30/Onix30ExportPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -37,13 +37,6 @@ function register($category, $path, $mainContextId = null) {
return $success;
}

/**
* @see Plugin::getTemplatePath($inCore)
*/
function getTemplatePath($inCore = false) {
return $this->getTemplateResourceName() . ':templates/';
}

/**
* Get the name of this plugin. The name must be unique within
* its category.
Expand Down
7 changes: 0 additions & 7 deletions plugins/paymethod/manual/ManualPaymentPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -153,11 +153,4 @@ function getInstallEmailTemplatesFile() {
function getInstallEmailTemplateDataFile() {
return ($this->getPluginPath() . '/locale/{$installedLocale}/emailTemplates.xml');
}

/**
* @copydoc Plugin::getTemplatePath()
*/
function getTemplatePath($inCore = false) {
return parent::getTemplatePath($inCore) . 'templates/';
}
}
7 changes: 0 additions & 7 deletions plugins/paymethod/paypal/PaypalPaymentPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -132,13 +132,6 @@ function getInstallEmailTemplatesFile() {
function getInstallEmailTemplateDataFile() {
return ($this->getPluginPath() . '/locale/{$installedLocale}/emailTemplates.xml');
}

/**
* @copydoc Plugin::getTemplatePath()
*/
function getTemplatePath($inCore = false) {
return parent::getTemplatePath($inCore) . 'templates/';
}
}

?>
7 changes: 0 additions & 7 deletions plugins/pubIds/doi/DOIPubIdPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -49,13 +49,6 @@ function getDescription() {
return __('plugins.pubIds.doi.description');
}

/**
* @copydoc Plugin::getTemplatePath()
*/
function getTemplatePath($inCore = false) {
return $this->getTemplateResourceName() . ':templates/';
}


//
// Implement template methods from PubIdPlugin.
Expand Down
7 changes: 0 additions & 7 deletions plugins/pubIds/urn/URNPubIdPlugin.inc.php
Original file line number Diff line number Diff line change
Expand Up @@ -48,13 +48,6 @@ function getDescription() {
return __('plugins.pubIds.urn.description');
}

/**
* @copydoc Plugin::getTemplatePath()
*/
function getTemplatePath($inCore = false) {
return $this->getTemplateResourceName() . ':templates/';
}


//
// Implement template methods from PubIdPlugin.
Expand Down

0 comments on commit d8b7e84

Please sign in to comment.