diff options
-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; |