bug 3111: add comment to help understand the code

git-svn-id: http://piwigo.org/svn/trunk@29839 68402e56-0260-453c-a942-63ccdbb3a9ee
This commit is contained in:
plegall 2014-09-29 20:55:00 +00:00
parent fdebb13ad4
commit 7e5722ce78

View file

@ -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;