Commit 7b6423f7 authored by Richard Mansfield's avatar Richard Mansfield
Browse files

Ensure user theme is updated immediately after logging in via the login form


Signed-off-by: default avatarRichard Mansfield <richardm@catalyst.net.nz>
parent 40a877c4
......@@ -1176,5 +1176,13 @@ class LiveUser extends User {
$this->reset_institutions();
$this->commit();
}
public function reset_institutions() {
global $THEME;
parent::reset_institutions();
if (isset($THEME->basename) && $this->theme != $THEME->basename && !defined('INSTALLER')) {
$THEME = new Theme($this->theme);
}
}
}
?>
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment