mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-06-02 04:15:05 +02:00
issue #1852 ability to disable core/extensions updates
This commit is contained in:
@@ -11,6 +11,11 @@ if( !defined("PHPWG_ROOT_PATH") )
|
||||
die ("Hacking attempt!");
|
||||
}
|
||||
|
||||
if (!$conf['enable_extensions_install'])
|
||||
{
|
||||
die('Piwigo extensions install/update system is disabled');
|
||||
}
|
||||
|
||||
if (!is_webmaster())
|
||||
{
|
||||
$page['warnings'][] = str_replace('%s', l10n('user_status_webmaster'), l10n('%s status is required to edit parameters.'));
|
||||
|
||||
Reference in New Issue
Block a user