aboutsummaryrefslogtreecommitdiffstats
path: root/admin
diff options
context:
space:
mode:
Diffstat (limited to '')
-rw-r--r--admin/plugins_new.php6
-rw-r--r--admin/plugins_update.php6
2 files changed, 10 insertions, 2 deletions
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);
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)
{