diff options
author | plegall <plg@piwigo.org> | 2014-09-29 20:55:00 +0000 |
---|---|---|
committer | plegall <plg@piwigo.org> | 2014-09-29 20:55:00 +0000 |
commit | 7e5722ce78f89e4f7dbd91a8785b449aa122878b (patch) | |
tree | 36787867dee23c459896e2de74eca2ffe2580251 /include/functions_user.inc.php | |
parent | fdebb13ad4321d8c7838a1869005388f688f1c76 (diff) |
bug 3111: add comment to help understand the code
git-svn-id: http://piwigo.org/svn/trunk@29839 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include/functions_user.inc.php')
-rw-r--r-- | include/functions_user.inc.php | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/include/functions_user.inc.php b/include/functions_user.inc.php index 91bac83bb..3e69ef0c2 100644 --- a/include/functions_user.inc.php +++ b/include/functions_user.inc.php @@ -222,6 +222,10 @@ SELECT id $override = null; if ($notify_admin and $conf['browser_language']) { + // if function get_browser_language finds a language in the browser + // which matches a language activated in Piwigo, then it sets + // $override['language'] to 'ru' (for example) and returns + // true. $override won't stay null if (!get_browser_language($override['language'])) { $override=null; |