From ad38c2ec0ff7a66dc453c2861cd851858feabefd Mon Sep 17 00:00:00 2001 From: Benjamin Sonntag Date: Sun, 26 Aug 2007 20:03:46 +0000 Subject: [PATCH] no error on image_graph missing, and correct instructions + translations --- bureau/admin/stats_members.php | 6 +++--- bureau/locales/fr_FR/LC_MESSAGES/messages.po | 4 ++++ 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/bureau/admin/stats_members.php b/bureau/admin/stats_members.php index 4c25b3f8..e515c921 100644 --- a/bureau/admin/stats_members.php +++ b/bureau/admin/stats_members.php @@ -27,9 +27,9 @@ Purpose of file: ---------------------------------------------------------------------- */ -require_once("../class/config.php"); -if ((include_once 'Image/Graph.php') === FALSE) { - echo "

". _("Image_Graph not installed. pear install Image_Graph-devel to see the graph.")."

"; +@require_once("../class/config.php"); +if ((@include_once 'Image/Graph.php') === FALSE) { + echo "

". _("Image_Graph not installed. use 'aptitude install php-pear' then 'pear --alldeps install Image_Graph-devel' to see the graph.")."

"; exit(0); } diff --git a/bureau/locales/fr_FR/LC_MESSAGES/messages.po b/bureau/locales/fr_FR/LC_MESSAGES/messages.po index 7040832a..3576632c 100644 --- a/bureau/locales/fr_FR/LC_MESSAGES/messages.po +++ b/bureau/locales/fr_FR/LC_MESSAGES/messages.po @@ -2207,3 +2207,7 @@ msgstr "Ancien nom : " msgid "New Name:" msgstr "Nouveau nom : " + +msgid "Image_Graph not installed. use 'aptitude install php-pear' then 'pear --alldeps install Image_Graph-devel' to see the graph." +msgstr "Image_Graph n'est pas installée. Lancez 'aptitude install php-pear' puis 'pear --alldeps install Image_Graph-devel' pour voir le graphique." +