From 7e5722ce78f89e4f7dbd91a8785b449aa122878b Mon Sep 17 00:00:00 2001 From: plegall Date: Mon, 29 Sep 2014 20:55:00 +0000 Subject: bug 3111: add comment to help understand the code git-svn-id: http://piwigo.org/svn/trunk@29839 68402e56-0260-453c-a942-63ccdbb3a9ee --- include/functions_user.inc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'include') 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; -- cgit v1.2.3