diff options
author | INOPIAE <inopiae@cacert.org> | 2012-12-16 16:07:41 +0100 |
---|---|---|
committer | Benny Baumann <BenBE@geshi.org> | 2013-05-01 15:50:25 +0200 |
commit | 6ff07a756e49a114ad44bb129a5c64f4dbbb4536 (patch) | |
tree | 3ec695fd5bfea077bdd4be6528a8c1894a1c7531 /includes/lib/l10n.php | |
parent | 44ef98610497de881a8a6207f2c6ef82c41f0a4f (diff) | |
download | cacert-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.php | 8 |
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 |