From f750cdf33e7717fdb4fc6caf72361e76385fd6ae Mon Sep 17 00:00:00 2001 From: marcus Date: Thu, 26 Jun 2008 12:44:22 +0000 Subject: Closes #92: Settings: Set user language http://trac.elgg.org/elgg/ticket/92 git-svn-id: https://code.elgg.org/elgg/trunk@1145 36083f99-b078-4883-b0ff-0f9b5a30f544 --- actions/user/language.php | 40 ++++++++++++++++++++++++++++++++++++++++ 1 file changed, 40 insertions(+) create mode 100644 actions/user/language.php (limited to 'actions/user/language.php') diff --git a/actions/user/language.php b/actions/user/language.php new file mode 100644 index 000000000..f6a815858 --- /dev/null +++ b/actions/user/language.php @@ -0,0 +1,40 @@ +language = $language; + if ($user->save()) + system_message(elgg_echo('user:language:success')); + else + system_message(elgg_echo('user:language:fail')); + } + else + system_message(elgg_echo('user:language:fail')); + + forward($_SERVER['HTTP_REFERER']); + exit; +?> \ No newline at end of file -- cgit v1.2.3