Skip to content

Commit

Permalink
Align register() and smartyPluginUrl() signatures with 3.1.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ctgraham committed Mar 12, 2019
1 parent 8621f53 commit a67558d
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions QuickSubmitPlugin.inc.php
Expand Up @@ -21,14 +21,14 @@ class QuickSubmitPlugin extends ImportExportPlugin {
/**
* @copydoc Plugin::register()
*/
function register($category, $path) {
function register($category, $path, $mainContextId = NULL) {
AppLocale::requireComponents(LOCALE_COMPONENT_APP_COMMON,
LOCALE_COMPONENT_APP_SUBMISSION,
LOCALE_COMPONENT_APP_AUTHOR,
LOCALE_COMPONENT_APP_EDITOR,
LOCALE_COMPONENT_PKP_SUBMISSION);

$success = parent::register($category, $path);
$success = parent::register($category, $path, $mainContextId);
$this->addLocaleData();

return $success;
Expand Down Expand Up @@ -208,7 +208,7 @@ function reloadForm($args, $request) {
/**
* Extend the {url ...} for smarty to support this plugin.
*/
function smartyPluginUrl($params, &$smarty) {
function smartyPluginUrl($params, $smarty) {
$path = array('plugin',$this->getName());
if (is_array($params['path'])) {
$params['path'] = array_merge($path, $params['path']);
Expand Down

0 comments on commit a67558d

Please sign in to comment.