2013-07-25 Juan Manuel Ramon Vigo <juanmanuel.ramon@artica.es>

* include/functions.php: Modified function get_user_language
        . if it's called from metaconsole then user lang can be
        updated (support for external hashed call to Pandora).
2013-07-25 Juan Manuel Ramon Vigo <juanmanuel.ramon@artica.es>

        * include/functions.php: Modified function get_user_language
        . if it's called from metaconsole then user lang can be
        updated (support for external hashed call to Pandora).



git-svn-id: https://svn.code.sf.net/p/pandora/code/trunk@8577 c3f86ba8-e40f-0410-aaad-9ba5e7f4b01f
This commit is contained in:
juanmanuelr 2013-07-25 13:19:59 +00:00
parent f5270b5071
commit 3f63819696
2 changed files with 16 additions and 0 deletions

View File

@ -1,3 +1,9 @@
2013-07-25 Juan Manuel Ramon Vigo <juanmanuel.ramon@artica.es>
* include/functions.php: Modified function get_user_language
. if it's called from metaconsole then user lang can be
updated (support for external hashed call to Pandora).
2013-07-25 Sergio Martin <sergio.martin@artica.es>
* include/constants.php: Move policy constants from

View File

@ -327,6 +327,16 @@ function get_user_language ($id_user = null) {
if ($quick_language) {
$language = get_parameter('language', 0);
if (defined('METACONSOLE')) {
if ($id_user == null)
$id_user = $config['id_user'];
if ($language !== 0)
update_user($id_user, array('language' => $language));
}
if ($language === 'default') {
return $config['language'];
}