commit 9ca6bb553673486287bba8000e18c7027b8ad13f
Author: Richard Mansfield <email address hidden>
Date: Wed Jun 8 09:56:57 2011 +1200
Reset the site language immediately after config is loaded (bug #787123)
Because the $lang variable is declared as static in current_language(), a
call to get_string in the sanity checks can set the language for the
entire request, even before the site language has been read in from the
config table. This ensures the language is reset immediately after config
has been read.
Change-Id: Ic81dfaedd70de75d93a6d38dd89915eeabcccd6e
Signed-off-by: Richard Mansfield <email address hidden>
Reviewed: https:/ /reviews. mahara. org/294 gitorious. org/mahara/ mahara/ commit/ 9ca6bb553673486 287bba8000e18c7 027b8ad13f
Committed: http://
Submitter: Richard Mansfield (<email address hidden>)
Branch: master
commit 9ca6bb553673486 287bba8000e18c7 027b8ad13f
Author: Richard Mansfield <email address hidden>
Date: Wed Jun 8 09:56:57 2011 +1200
Reset the site language immediately after config is loaded (bug #787123)
Because the $lang variable is declared as static in current_language(), a
call to get_string in the sanity checks can set the language for the
entire request, even before the site language has been read in from the
config table. This ensures the language is reset immediately after config
has been read.
Change-Id: Ic81dfaedd70de7 5d93a6d38dd8991 5eeabcccd6e
Signed-off-by: Richard Mansfield <email address hidden>