Skip to content

Commit

Permalink
Upload Mod v3.1.1
Browse files Browse the repository at this point in the history
Fix plugin.
  • Loading branch information
MioVisman committed Feb 1, 2021
1 parent 670d690 commit 38a14a2
Showing 1 changed file with 5 additions and 4 deletions.
9 changes: 5 additions & 4 deletions plugins/AP_Upload.php
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<?php

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

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

$disbl = (true === $upf_class->isResize()) ? '' : '" disabled="disabled';
$stthumb = ('' === $disbl && 1 == $aconf['thumb']) ? '' : '" disabled="disabled';

if (defined('PLUGIN_OFF')) {

?>
Expand All @@ -311,8 +314,6 @@
<?php

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

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

0 comments on commit 38a14a2

Please sign in to comment.