aboutsummaryrefslogtreecommitdiffstats
path: root/include/functions.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2006-02-08 01:17:07 +0000
committerrvelices <rv-github@modusoptimus.com>2006-02-08 01:17:07 +0000
commit0e78db47de2041912447dd5bbbfafb7684e7480f (patch)
treeafb3fe9de5bdbbe5c0ce624f8ce60e65c6ef57c3 /include/functions.inc.php
parent687a7ca122b56264c63830112ca43ea7db2c3c7b (diff)
- remake of Remote sites and Synchronize:
- synchronization for remote and local sites are done by the same code - remote sites can update metadata now (not before) - bug 279 - fixes bug 82: has_high column - improve feature 280: user sort by filename - fix path to template mimetypes icons - bug 284: session cookie lifetime, deletion on logout and corrected issue when db upgrades were missing git-svn-id: http://piwigo.org/svn/trunk@1029 68402e56-0260-453c-a942-63ccdbb3a9ee
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