mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-07-20 00:23:40 +02:00
Add explicit error message in plugins tab if allow_url_fopen is disabled.
git-svn-id: http://piwigo.org/svn/trunk@2652 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
@@ -97,7 +97,11 @@ set_plugins_tabsheet($page['page']);
|
||||
// +-----------------------------------------------------------------------+
|
||||
// | start template output |
|
||||
// +-----------------------------------------------------------------------+
|
||||
if ($plugins->get_server_plugins())
|
||||
if (!ini_get('allow_url_fopen'))
|
||||
{
|
||||
array_push($page['errors'], l10n('Unable to connect to PEM server since allow_url_fopen is disabled.'));
|
||||
}
|
||||
elseif ($plugins->get_server_plugins())
|
||||
{
|
||||
foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user