From ccaea1c81c43e4d4639d502f4e4dd3e162955f3c Mon Sep 17 00:00:00 2001 From: ajnyga Date: Wed, 27 Jul 2022 18:51:30 +0300 Subject: [PATCH] OJS 3.3.0 --- AllowedUploadsPlugin.inc.php | 12 ++++++------ AllowedUploadsSettingsForm.inc.php | 4 ++-- README.md | 2 +- index.php | 6 +++--- version.xml | 8 ++++---- 5 files changed, 16 insertions(+), 16 deletions(-) diff --git a/AllowedUploadsPlugin.inc.php b/AllowedUploadsPlugin.inc.php index 686d340..a27208f 100755 --- a/AllowedUploadsPlugin.inc.php +++ b/AllowedUploadsPlugin.inc.php @@ -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 @@ -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]; @@ -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(); diff --git a/AllowedUploadsSettingsForm.inc.php b/AllowedUploadsSettingsForm.inc.php index 4b7c178..d6de2c5 100755 --- a/AllowedUploadsSettingsForm.inc.php +++ b/AllowedUploadsSettingsForm.inc.php @@ -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 diff --git a/README.md b/README.md index 3c513d7..6fe4357 100755 --- a/README.md +++ b/README.md @@ -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. diff --git a/index.php b/index.php index 81cb0fc..3d628f9 100755 --- a/index.php +++ b/index.php @@ -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 diff --git a/version.xml b/version.xml index 2bfd385..67a472a 100755 --- a/version.xml +++ b/version.xml @@ -4,8 +4,8 @@