From d05caccc318410e0e1321e9c0d0d29983c8e4cf5 Mon Sep 17 00:00:00 2001 From: chrisaga Date: Sat, 29 Apr 2006 10:29:32 +0000 Subject: bug 358 fixed : Accent are not correctly displayed in category listing Removed calls to htmlentities() improvement : charset added in HTTP header so browser's automatic encoding works even if httpd is not netto latin1 revert to original l10n() : use of htmlentities() didn't solve bug in IE tooltips git-svn-id: http://piwigo.org/svn/trunk@1290 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions.inc.php | 12 +----------- 1 file changed, 1 insertion(+), 11 deletions(-) (limited to 'include/functions.inc.php') diff --git a/include/functions.inc.php b/include/functions.inc.php index 166b0798f..1a71112f7 100644 --- a/include/functions.inc.php +++ b/include/functions.inc.php @@ -799,7 +799,7 @@ function get_name_from_file($filename) * @param string key * @return string */ -function raw_l10n($key) +function l10n($key) { global $lang, $conf; @@ -810,16 +810,6 @@ function raw_l10n($key) return isset($lang[$key]) ? $lang[$key] : $key; } -/** - * Like l10n but converts html entities - * - * @param string key - * @return string - */ -function l10n($key) -{ - return htmlentities(raw_l10n($key),ENT_QUOTES); -} /** * returns the corresponding value from $themeconf if existing. Else, the -- cgit v1.2.3