Skip to content

Commit

Permalink
Support 3.2
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnyga committed Feb 25, 2020
1 parent 26a1f7f commit 1d323e7
Show file tree
Hide file tree
Showing 8 changed files with 19 additions and 18 deletions.
4 changes: 2 additions & 2 deletions AllowedUploadsPlugin.inc.php
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-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class AllowedUploadsPlugin
Expand Down
7 changes: 4 additions & 3 deletions AllowedUploadsSettingsForm.inc.php
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-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class AllowedUploadsSettingsForm
Expand Down Expand Up @@ -67,8 +67,9 @@ function fetch($request, $template = null, $display = false) {
/**
* Save settings.
*/
function execute() {
function execute(...$functionArgs) {
$this->_plugin->updateSetting($this->_contextId, 'allowedExtensions', $this->getData('allowedExtensions'), 'string');
parent::execute(...$functionArgs);
}

}
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
Allowed Uploads
===============

For OJS/OMP 3.1.2 or higher
For OJS/OMP 3.2.0 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
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-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 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
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-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 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
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-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 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
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-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* Allowed Uploads plugin localization strings
Expand Down
8 changes: 4 additions & 4 deletions version.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,17 +4,17 @@
<!--
* plugins/generic/allowedUploads/version.xml
*
* Copyright (c) 2014-2019 Simon Fraser University
* Copyright (c) 2003-2019 John Willinsky
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 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.4</release>
<date>2019-03-05</date>
<release>1.0.0.5</release>
<date>2020-02-25</date>
<lazy-load>1</lazy-load>
<class>AllowedUploadsPlugin</class>
</version>

0 comments on commit 1d323e7

Please sign in to comment.