Skip to content

Commit 38a14a2

Browse files
committed
Upload Mod v3.1.1
Fix plugin.
1 parent 670d690 commit 38a14a2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

plugins/AP_Upload.php

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?php
22

33
/**
4-
* Copyright (C) 2011-2020 Visman ([email protected])
4+
* Copyright (C) 2011-2021 Visman ([email protected])
55
* Copyright (C) 2007 BN ([email protected])
66
* License: http://www.gnu.org/licenses/gpl.html GPL version 2 or higher
77
*/
@@ -13,7 +13,7 @@
1313

1414
// Tell admin_loader.php that this is indeed a plugin and that it is loaded
1515
define('PUN_PLUGIN_LOADED', 1);
16-
define('PLUGIN_VERSION', '3.1.0');
16+
define('PLUGIN_VERSION', '3.1.1');
1717
define('PLUGIN_URL', pun_htmlspecialchars('admin_loader.php?plugin=' . $plugin));
1818
define('PLUGIN_EXTS', 'webp,jpg,jpeg,png,gif,mp3,zip,rar,7z');
1919
define('PLUGIN_NF', 25);
@@ -300,6 +300,9 @@
300300
<input type="hidden" name="csrf_hash" value="<?= $upf_token ?>" />
301301
<?php
302302

303+
$disbl = (true === $upf_class->isResize()) ? '' : '" disabled="disabled';
304+
$stthumb = ('' === $disbl && 1 == $aconf['thumb']) ? '' : '" disabled="disabled';
305+
303306
if (defined('PLUGIN_OFF')) {
304307

305308
?>
@@ -311,8 +314,6 @@
311314
<?php
312315

313316
} else {
314-
$disbl = (true === $upf_class->isResize()) ? '' : '" disabled="disabled';
315-
$stthumb = ('' === $disbl && 1 == $aconf['thumb']) ? '' : '" disabled="disabled';
316317

317318
?>
318319
<input type="submit" name="update" value="<?= $lang_up['Update'] ?>" />&#160;<?= $lang_up['Update info'] ?><br />

0 commit comments

Comments
 (0)