Skip to content

Commit

Permalink
Support 3.1.2 release
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnyga committed Mar 5, 2019
1 parent cb418fd commit 72099d7
Show file tree
Hide file tree
Showing 10 changed files with 23 additions and 30 deletions.
13 changes: 3 additions & 10 deletions AllowedUploadsPlugin.inc.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* @file plugins/generic/allowedUploads/AllowedUploadsPlugin.inc.php
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class AllowedUploadsPlugin
Expand All @@ -22,7 +22,7 @@ class AllowedUploadsPlugin extends GenericPlugin {
* @return boolean True iff plugin initialized successfully; if false,
* the plugin will not be registered.
*/
function register($category, $path) {
function register($category, $path, $mainContextId = null) {
$success = parent::register($category, $path);
if (!Config::getVar('general', 'installed') || defined('RUNNING_UPGRADE')) return true;
if ($success && $this->getEnabled()) {
Expand Down Expand Up @@ -100,13 +100,6 @@ function manage($args, $request) {
return parent::manage($args, $request);
}

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

/**
* Check the uploaded file
*/
Expand Down
10 changes: 5 additions & 5 deletions AllowedUploadsSettingsForm.inc.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,8 @@
/**
* @file plugins/generic/allowedUploads/AllowedUploadsSettingsForm.inc.php
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class AllowedUploadsSettingsForm
Expand Down Expand Up @@ -32,7 +32,7 @@ function __construct($plugin, $contextId) {
$this->_contextId = $contextId;
$this->_plugin = $plugin;

parent::__construct($plugin->getTemplatePath() . 'settingsForm.tpl');
parent::__construct($plugin->getTemplateResource('settingsForm.tpl'));

$this->addCheck(new FormValidatorPost($this));
$this->addCheck(new FormValidatorCSRF($this));
Expand All @@ -58,10 +58,10 @@ function readInputData() {
* Fetch the form.
* @copydoc Form::fetch()
*/
function fetch($request) {
function fetch($request, $template = null, $display = false) {
$templateMgr = TemplateManager::getManager($request);
$templateMgr->assign('pluginName', $this->_plugin->getName());
return parent::fetch($request);
return parent::fetch($request, $template, $display);
}

/**
Expand Down
Empty file modified LICENSE
100644 → 100755
Empty file.
2 changes: 1 addition & 1 deletion README.md
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Allowed Uploads
===============

For OJS/OMP 3.1.1.2 or higher
For OJS/OMP 3.1.2 or higher

The plugin enables the editor to choose which file extensions are allowed in their journal. NOTE! This is *not* a security plugin. Make sure that your files directory is not a subdirectory of your OJS installation. For more details read the OJS installation instructions.

Expand Down
4 changes: 2 additions & 2 deletions index.php
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,8 @@
/**
* @file plugins/generic/allowedUploads/index.php
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @ingroup plugins_generic_allowedUploads
Expand Down
4 changes: 2 additions & 2 deletions locale/ar_IQ/locale.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<!--
* plugins/generic/allowedUploads/locale/ar_IQ/locale.xml
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Allowed Uploads plugin localization strings
Expand Down
4 changes: 2 additions & 2 deletions locale/en_US/locale.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<!--
* plugins/generic/allowedUploads/locale/en_US/locale.xml
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Allowed Uploads plugin localization strings
Expand Down
4 changes: 2 additions & 2 deletions locale/fi_FI/locale.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@
<!--
* plugins/generic/allowedUploads/locale/fi_FI/locale.xml
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Allowed Uploads plugin localization strings
Expand Down
4 changes: 2 additions & 2 deletions templates/settingsForm.tpl
100644 → 100755
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{**
* plugins/generic/allowedUploads/settingsForm.tpl
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Allowed Uploads plugin settings
Expand Down
8 changes: 4 additions & 4 deletions version.xml
100644 → 100755
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<!--
* plugins/generic/allowedUploads/version.xml
*
* Copyright (c) 2014-2018 Simon Fraser University
* Copyright (c) 2003-2018 John Willinsky
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Plugin version information.
-->
<version>
<application>allowedUploads</application>
<type>plugins.generic</type>
<release>1.0.0.2</release>
<date>2018-07-27</date>
<release>1.0.0.3</release>
<date>2019-03-05</date>
<lazy-load>1</lazy-load>
<class>AllowedUploadsPlugin</class>
</version>

0 comments on commit 72099d7

Please sign in to comment.