Changeset 2652


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
Files:
7 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)
  • trunk/language/en_UK/admin.lang.php

    r2567 r2652  
    638638$lang['ranks'] = 'ranks';
    639639$lang['Drag to re-order'] = 'Drag to re-order';
     640$lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Unable to retrieve server informations since allow_url_fopen is disabled.';
    640641?>
  • trunk/language/es_ES/admin.lang.php

    r2567 r2652  
    635635$lang['ranks'] = 'Filas';
    636636/* TODO */ $lang['Drag to re-order'] = 'Drag to re-order';
     637/* TODO */ $lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Unable to retrieve server informations since allow_url_fopen is disabled.';
    637638?>
  • trunk/language/fr_FR/admin.lang.php

    r2608 r2652  
    629629$lang['edit category informations'] = 'éditer les informations de cette catégorie';
    630630$lang['nothing'] = 'rien';
    631 /* TODO */ $lang['overrides existing values with empty ones'] = 'overrides existing values with empty ones';
     631$lang['overrides existing values with empty ones'] = 'écraser les données existantes avec des données vides';
    632632$lang['manage image ranks'] = 'gérer l\'ordre des images';
    633633$lang['Manage image ranks'] = 'Gérer l\'ordre des images';
     
    637637$lang['ranks'] = 'rangs';
    638638$lang['Drag to re-order'] = 'Cliquer-glisser pour ré-organiser';
     639$lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Impossible de se connecter au server car la fonction allow_url_fopen est désactivée.';
    639640?>
  • trunk/language/it_IT/admin.lang.php

    r2567 r2652  
    637637$lang['ranks'] = 'rangs';
    638638/* TODO */ $lang['Drag to re-order'] = 'Drag to re-order';
     639/* TODO */ $lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Unable to retrieve server informations since allow_url_fopen is disabled.';
    639640?>
  • trunk/language/nl_NL/admin.lang.php

    r2567 r2652  
    633633/* TODO */ $lang['overrides existing values with empty ones'] = 'overrides existing values with empty ones';
    634634/* TODO */ $lang['Drag to re-order'] = 'Drag to re-order';
     635/* TODO */ $lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Unable to retrieve server informations since allow_url_fopen is disabled.';
    635636?>
Note: See TracChangeset for help on using the changeset viewer.