Commit 1805fa74 authored by Nigel McNie's avatar Nigel McNie
Browse files

Use the session's authinstance information for userauthinstance rather than...

Use the session's authinstance information for userauthinstance rather than $USER->lastauthinstance, which, while it might be correct due to session caching in the $USER object, isn't strictly "right".
parent a5abf9c7
......@@ -434,7 +434,7 @@ EOF;
usort($SIDEBLOCKS, create_function('$a,$b', 'if ($a["weight"] == $b["weight"]) return 0; return ($a["weight"] < $b["weight"]) ? -1 : 1;'));
$smarty->assign('userauthinstance', $USER->lastauthinstance);
$smarty->assign('userauthinstance', $SESSION->get('authinstance'));
$smarty->assign('SIDEBLOCKS', $SIDEBLOCKS);
if ($USER->get('parentuser')) {
......
Supports Markdown
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