aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
Diffstat (limited to 'include/functions.inc.php')
-rw-r--r--include/functions.inc.php14
1 files changed, 14 insertions, 0 deletions
diff --git a/include/functions.inc.php b/include/functions.inc.php
index d49317d22..49f1b44bd 100644
--- a/include/functions.inc.php
+++ b/include/functions.inc.php
@@ -974,6 +974,20 @@ SELECT '.$conf['user_fields']['email'].'
}
/**
+ * returns the $str in current language if possible or $str enclosed
+ * in special chars
+ */
+function get_lang($str)
+{
+ global $lang;
+ if ( isset($lang[$str]) )
+ {
+ return $lang[$str];
+ }
+ return '@@'.$str.'@@';
+}
+
+/**
* which upgrades are available ?
*
* @return array