Bug fix: hide warning message on few installations

git-svn-id: https://semanticscuttle.svn.sourceforge.net/svnroot/semanticscuttle/trunk@145 b3834d28-1941-0410-a4f8-b48e95affb8f
This commit is contained in:
mensonge 2008-09-11 14:54:15 +00:00
parent 0858ba7f72
commit bfdc6bd738

View file

@ -128,7 +128,7 @@ function _setlocale($category, $locale) {
} else { } else {
$ret = 0; $ret = 0;
if (function_exists('setlocale')) // I don't know if this ever happens ;) 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)) { if (($ret and $locale == '') or ($ret == $locale)) {
$EMULATEGETTEXT = 0; $EMULATEGETTEXT = 0;
$CURRENTLOCALE = $ret; $CURRENTLOCALE = $ret;