summaryrefslogtreecommitdiffstats
path: root/lib/ui.lib.php
diff options
context:
space:
mode:
authorKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-14 05:44:59 +0000
committerKarl 'vollmerk' Vollmer <vollmer@ampache.org>2008-03-14 05:44:59 +0000
commite99f7c6112a463e51be0aafecdc5189578c7373f (patch)
tree3a12776d0b6d4d5bcfd83897b39662d40139d871 /lib/ui.lib.php
parent94f37cd899d3b5bf8b95f837f0f25839f4556f48 (diff)
downloadampache-e99f7c6112a463e51be0aafecdc5189578c7373f.tar.gz
ampache-e99f7c6112a463e51be0aafecdc5189578c7373f.tar.bz2
ampache-e99f7c6112a463e51be0aafecdc5189578c7373f.zip
fixed the issue with a lack of gettext (define ngettext if it does not exist)
Diffstat (limited to 'lib/ui.lib.php')
-rw-r--r--lib/ui.lib.php10
1 files changed, 10 insertions, 0 deletions
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
@@ -82,6 +82,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
* that they aren't allowed to