Changeset 2652 for trunk/admin


Ignore:
Timestamp:
Oct 4, 2008, 1:33:34 PM (16 years ago)
Author:
patdenice
Message:

Add explicit error message in plugins tab if allow_url_fopen is disabled.

Location:
trunk/admin
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/admin/plugins_new.php

    r2647 r2652  
    9090// |                     start template output                             |
    9191// +-----------------------------------------------------------------------+
    92 if ($plugins->get_server_plugins(true))
     92if (!ini_get('allow_url_fopen'))
     93{
     94  array_push($page['errors'], l10n('Unable to retrieve server informations since allow_url_fopen is disabled.'));
     95}
     96elseif ($plugins->get_server_plugins(true))
    9397{
    9498  $plugins->sort_server_plugins($order);
  • trunk/admin/plugins_update.php

    r2647 r2652  
    9898// |                     start template output                             |
    9999// +-----------------------------------------------------------------------+
    100 if ($plugins->get_server_plugins())
     100if (!ini_get('allow_url_fopen'))
     101{
     102  array_push($page['errors'], l10n('Unable to connect to PEM server since allow_url_fopen is disabled.'));
     103}
     104elseif ($plugins->get_server_plugins())
    101105{
    102106  foreach($plugins->fs_plugins as $plugin_id => $fs_plugin)
Note: See TracChangeset for help on using the changeset viewer.