related to #1530 status verification for extention updates

This commit is contained in:
Matthieu Leproux
2021-10-21 14:08:27 +02:00
parent 35490ab89a
commit 967cbe5e2a
5 changed files with 22 additions and 10 deletions
+13 -7
View File
@@ -1,16 +1,21 @@
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
<?php
// +-----------------------------------------------------------------------+
// | This file is part of Piwigo. |
// | |
// | For copyright and license information, please view the COPYING.txt |
// | file that was distributed with this source code. |
// +-----------------------------------------------------------------------+
if( !defined("PHPWG_ROOT_PATH") )
{
die ("Hacking attempt!");
}
if (!is_webmaster())
{
$page['warnings'][] = l10n('Webmaster status is required.');
}
$conf['updates_ignored'] = unserialize($conf['updates_ignored']);
include_once(PHPWG_ROOT_PATH.'admin/include/updates.class.php');
@@ -76,5 +81,6 @@ $template->assign('PWG_TOKEN', get_pwg_token());
$template->assign('EXT_TYPE', $page['page'] == 'updates' ? 'extensions' : $page['page']);
$template->set_filename('plugin_admin_content', 'updates_ext.tpl');
$template->assign_var_from_handle('ADMIN_CONTENT', 'plugin_admin_content');
$template->assign('isWebmaster', (is_webmaster()) ? 1 : 0);
?>