Diff of /web_clients/phpmp+/functions.inc.php [1d4093] .. [cf6ec8] Maximize Restore

  Switch to side-by-side view

--- a/web_clients/phpmp+/functions.inc.php
+++ b/web_clients/phpmp+/functions.inc.php
@@ -9,7 +9,7 @@
 $version = "0.2.3";     # Version of this client
 
 $langs = array(         # Available languages
-    "fr"    =>  "Fran�ais",
+    "fr"    =>  "Francais",
     "en"    =>  "English");
 
 // Display a string in chosen language
@@ -73,10 +73,11 @@
         $indicecandidat = $j;
       }
       else {
-        $q = ereg_replace('.*;q=(.*)', '\\1', $lang);
+	print_r($lang);
+        $q = preg_replace('/.*;q=(.*)/', '\\1', $lang);
 
         if ($q > $qcandidat) {
-          $candidat = ereg_replace('(.*);.*', '\\1', $lang); ;
+          $candidat = preg_replace('/(.*);.*/', '\\1', $lang); ;
           $qcandidat = $q;
           $indicecandidat = $j;
         }