From 9559f1a875dd97c1bcf9b7e603ec27a5245c1479 Mon Sep 17 00:00:00 2001 From: patdenice Date: Sat, 4 Oct 2008 11:33:34 +0000 Subject: 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 --- admin/plugins_new.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'admin/plugins_new.php') diff --git a/admin/plugins_new.php b/admin/plugins_new.php index e86dc0a16..d2c2ce52f 100644 --- a/admin/plugins_new.php +++ b/admin/plugins_new.php @@ -89,7 +89,11 @@ $template->assign('order_selected', $link.$order); // +-----------------------------------------------------------------------+ // | start template output | // +-----------------------------------------------------------------------+ -if ($plugins->get_server_plugins(true)) +if (!ini_get('allow_url_fopen')) +{ + array_push($page['errors'], l10n('Unable to retrieve server informations since allow_url_fopen is disabled.')); +} +elseif ($plugins->get_server_plugins(true)) { $plugins->sort_server_plugins($order); -- cgit v1.2.3