summaryrefslogtreecommitdiff
path: root/includes/lib/l10n.php
diff options
context:
space:
mode:
authorINOPIAE <inopiae@cacert.org>2012-12-16 16:07:41 +0100
committerBenny Baumann <BenBE@geshi.org>2013-05-01 15:50:25 +0200
commit6ff07a756e49a114ad44bb129a5c64f4dbbb4536 (patch)
tree3ec695fd5bfea077bdd4be6528a8c1894a1c7531 /includes/lib/l10n.php
parent44ef98610497de881a8a6207f2c6ef82c41f0a4f (diff)
downloadcacert-devel-6ff07a756e49a114ad44bb129a5c64f4dbbb4536.tar.gz
cacert-devel-6ff07a756e49a114ad44bb129a5c64f4dbbb4536.tar.xz
cacert-devel-6ff07a756e49a114ad44bb129a5c64f4dbbb4536.zip
bug 28: Moved function from temp_function1.php to includes/lib/l10n.php and changed the reference
Diffstat (limited to 'includes/lib/l10n.php')
-rw-r--r--includes/lib/l10n.php8
1 files changed, 8 insertions, 0 deletions
diff --git a/includes/lib/l10n.php b/includes/lib/l10n.php
index 85b7aff..f834fd0 100644
--- a/includes/lib/l10n.php
+++ b/includes/lib/l10n.php
@@ -340,4 +340,12 @@ class L10n {
bindtextdomain($domain, $_SESSION['_config']['filepath'].'/locale');
textdomain($domain);
}
+
+ function get_recipient_language($accoundid){
+//returns the language of a recipient to make sure that the language is correct
+//use together with
+ $query = "select * from `users` where `id`='".$id:"'";
+ $res = mysql_query($query);
+ $row = mysql_fetch_assoc($res);
+ return $row['language'];
} \ No newline at end of file