From e99f7c6112a463e51be0aafecdc5189578c7373f Mon Sep 17 00:00:00 2001 From: Karl 'vollmerk' Vollmer Date: Fri, 14 Mar 2008 05:44:59 +0000 Subject: fixed the issue with a lack of gettext (define ngettext if it does not exist) --- lib/ui.lib.php | 10 ++++++++++ 1 file changed, 10 insertions(+) (limited to 'lib/ui.lib.php') diff --git a/lib/ui.lib.php b/lib/ui.lib.php index 68092b71..9e7e5cb1 100644 --- a/lib/ui.lib.php +++ b/lib/ui.lib.php @@ -81,6 +81,16 @@ if (!function_exists('_')) { } // if _ isn't defined +/** + * ngettext + * checks for ngettext and defines it if it doesn't exist + */ +if (!function_exists('ngettext')) { + function ngettext($string) { + return $string; + } +} // if no ngettext + /** * access_denied * throws an error if they try to do something -- cgit