]> gitweb.fluxo.info Git - semanticscuttle.git/commitdiff
Bug fix: hide warning message on few installations
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 11 Sep 2008 14:54:15 +0000 (14:54 +0000)
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>
Thu, 11 Sep 2008 14:54:15 +0000 (14:54 +0000)
git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@145 b3834d28-1941-0410-a4f8-b48e95affb8f

includes/php-gettext/gettext.inc

index eb94b256a6bed0b73b56d8d628871df8f0f3fabe..a67811f9d6f218aefc431fb3681610300e58fe78 100644 (file)
@@ -128,7 +128,7 @@ function _setlocale($category, $locale) {
     } else {
         $ret = 0;
         if (function_exists('setlocale')) // I don't know if this ever happens ;)
-           $ret = setlocale($category, $locale);
+           $ret = @setlocale($category, $locale);  //the @ hides warning messages on few installations
         if (($ret and $locale == '') or ($ret == $locale)) {
             $EMULATEGETTEXT = 0;
             $CURRENTLOCALE = $ret;
@@ -315,4 +315,4 @@ if (!function_exists('gettext')) {
        }
 }
 
-?>
\ No newline at end of file
+?>