-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Fix plugin.
- Loading branch information
Showing
1 changed file
with
5 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 | ||
*/ | ||
|
@@ -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); | ||
|
@@ -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')) { | ||
|
||
?> | ||
|
@@ -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'] ?>" /> <?= $lang_up['Update info'] ?><br /> | ||
|