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
This commit is contained in:
parent
1d7f99d90f
commit
9559f1a875
7 changed files with 16 additions and 3 deletions
|
|
@ -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);
|
||||
|
||||
|
|
|
|||
|
|
@ -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)
|
||||
{
|
||||
|
|
|
|||
|
|
@ -637,4 +637,5 @@ $lang['No element in this category'] = 'No element in this category';
|
|||
$lang['Images manual order was saved'] = 'Images manual order was saved';
|
||||
$lang['ranks'] = 'ranks';
|
||||
$lang['Drag to re-order'] = 'Drag to re-order';
|
||||
$lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Unable to retrieve server informations since allow_url_fopen is disabled.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -634,4 +634,5 @@ $lang['No element in this category'] = 'Ningún elemento en esta categoría';
|
|||
$lang['Images manual order was saved'] = 'La orden manual de las imágenes ha sido salvada';
|
||||
$lang['ranks'] = 'Filas';
|
||||
/* TODO */ $lang['Drag to re-order'] = 'Drag to re-order';
|
||||
/* TODO */ $lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Unable to retrieve server informations since allow_url_fopen is disabled.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -628,7 +628,7 @@ $lang['delete this comment'] = 'supprimer ce commentaire';
|
|||
$lang['link_info_image'] = 'Modifier les informations';
|
||||
$lang['edit category informations'] = 'éditer les informations de cette catégorie';
|
||||
$lang['nothing'] = 'rien';
|
||||
/* TODO */ $lang['overrides existing values with empty ones'] = 'overrides existing values with empty ones';
|
||||
$lang['overrides existing values with empty ones'] = 'écraser les données existantes avec des données vides';
|
||||
$lang['manage image ranks'] = 'gérer l\'ordre des images';
|
||||
$lang['Manage image ranks'] = 'Gérer l\'ordre des images';
|
||||
$lang['Edit ranks'] = 'Modifier l\'ordre';
|
||||
|
|
@ -636,4 +636,5 @@ $lang['No element in this category'] = 'Aucun élément dans cette catégorie';
|
|||
$lang['Images manual order was saved'] = 'L\'ordre manuel des images a été sauvé';
|
||||
$lang['ranks'] = 'rangs';
|
||||
$lang['Drag to re-order'] = 'Cliquer-glisser pour ré-organiser';
|
||||
$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.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -636,4 +636,5 @@ $lang['No element in this category'] = 'Nessun\'elemento in questa categoria';
|
|||
$lang['Images manual order was saved'] = 'L\'ordinamento manuale delle immagini è stato salvato';
|
||||
$lang['ranks'] = 'rangs';
|
||||
/* TODO */ $lang['Drag to re-order'] = 'Drag to re-order';
|
||||
/* TODO */ $lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Unable to retrieve server informations since allow_url_fopen is disabled.';
|
||||
?>
|
||||
|
|
|
|||
|
|
@ -632,4 +632,5 @@ $lang['edit category informations'] = 'bewerk categorie informatie';
|
|||
/* TODO */ $lang['nothing'] = 'nothing';
|
||||
/* TODO */ $lang['overrides existing values with empty ones'] = 'overrides existing values with empty ones';
|
||||
/* TODO */ $lang['Drag to re-order'] = 'Drag to re-order';
|
||||
/* TODO */ $lang['Unable to retrieve server informations since allow_url_fopen is disabled.'] = 'Unable to retrieve server informations since allow_url_fopen is disabled.';
|
||||
?>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue