Skip to content

Commit

Permalink
OJS 3.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
ajnyga committed Jul 27, 2022
1 parent 71a03d2 commit ccaea1c
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 16 deletions.
12 changes: 6 additions & 6 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-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Copyright (c) 2014-2022 Simon Fraser University
* Copyright (c) 2003-2022 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class AllowedUploadsPlugin
Expand Down Expand Up @@ -104,12 +104,12 @@ function manage($args, $request) {
* Check the uploaded file in wizard
*/
function checkUploadWizard($hookName, $params) {

if ($params[1] == 'add'){
$errors =& $params[0];
$props = $params[2];
$locale = $params[4];
$request = Application::getRequest();
$request = Application::get()->getRequest();
$context = $request->getContext();

$fileName = $props['name'][$locale];
Expand All @@ -130,9 +130,9 @@ function checkUploadWizard($hookName, $params) {
/**
* Check the uploaded file
*/
function checkUpload($hookName, $params) {
function checkUpload($hookName, $params) {
$form = $params[0];
$request = Application::getRequest();
$request = Application::get()->getRequest();
$context = $request->getContext();

$userVars = $request->getUserVars();
Expand Down
4 changes: 2 additions & 2 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-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Copyright (c) 2014-2022 Simon Fraser University
* Copyright (c) 2003-2022 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @class AllowedUploadsSettingsForm
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.2.1
For OJS/OMP 3.3.0

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
6 changes: 3 additions & 3 deletions index.php
Original file line number Diff line number Diff line change
Expand Up @@ -3,12 +3,12 @@
/**
* @defgroup plugins_generic_allowedUploads Allowed Uploads Plugin
*/

/**
* @file plugins/generic/allowedUploads/index.php
*
* Copyright (c) 2014-2020 Simon Fraser University
* Copyright (c) 2003-2020 John Willinsky
* Copyright (c) 2014-2022 Simon Fraser University
* Copyright (c) 2003-2022 John Willinsky
* Distributed under the GNU GPL v3. For full terms see the file docs/COPYING.
*
* @ingroup plugins_generic_allowedUploads
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-2021 Simon Fraser University
* Copyright (c) 2003-2021 John Willinsky
* Copyright (c) 2014-2022 Simon Fraser University
* Copyright (c) 2003-2022 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.1.0.1</release>
<date>2021-02-07</date>
<release>1.1.1.0</release>
<date>2022-07-27</date>
<lazy-load>1</lazy-load>
<class>AllowedUploadsPlugin</class>
</version>

0 comments on commit ccaea1c

Please sign in to comment.