From bfdc6bd7380fda2d5d8ca78a462047069c4020bc Mon Sep 17 00:00:00 2001 From: mensonge Date: Thu, 11 Sep 2008 14:54:15 +0000 Subject: [PATCH] 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 --- includes/php-gettext/gettext.inc | 4 ++-- 1 file 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 +?>