aboutsummaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authormensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-09-11 14:54:15 +0000
committermensonge <mensonge@b3834d28-1941-0410-a4f8-b48e95affb8f>2008-09-11 14:54:15 +0000
commitbfdc6bd7380fda2d5d8ca78a462047069c4020bc (patch)
treeebfc4186f5b6764ee35d8a2d4e8ec40234aa4a7d /includes
parent0858ba7f72c5cf5626898b81429b2f88911b9dfb (diff)
downloadsemanticscuttle-bfdc6bd7380fda2d5d8ca78a462047069c4020bc.tar.gz
semanticscuttle-bfdc6bd7380fda2d5d8ca78a462047069c4020bc.tar.bz2
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
Diffstat (limited to 'includes')
-rw-r--r--includes/php-gettext/gettext.inc4
1 files changed, 2 insertions, 2 deletions
diff --git a/includes/php-gettext/gettext.inc b/includes/php-gettext/gettext.inc
index eb94b25..a67811f 100644
--- a/includes/php-gettext/gettext.inc
+++ b/includes/php-gettext/gettext.inc
@@ -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
+?>