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:
parent
0858ba7f72
commit
bfdc6bd738
1 changed files with 2 additions and 2 deletions
|
@ -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;
|
||||
|
|
Loading…
Reference in a new issue