diff options
author | patdenice <patdenice@piwigo.org> | 2008-10-04 11:33:34 +0000 |
---|---|---|
committer | patdenice <patdenice@piwigo.org> | 2008-10-04 11:33:34 +0000 |
commit | 9559f1a875dd97c1bcf9b7e603ec27a5245c1479 (patch) | |
tree | 8d88f9992de67890d65ee717f9749458c773ac99 /admin/plugins_update.php | |
parent | 1d7f99d90fcefacfe53025a8cbcacb29224a906c (diff) |
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
Diffstat (limited to 'admin/plugins_update.php')
-rw-r--r-- | admin/plugins_update.php | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/admin/plugins_update.php b/admin/plugins_update.php index 944fd3b1a..6040a26a3 100644 --- a/admin/plugins_update.php +++ b/admin/plugins_update.php @@ -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) { |