Skip to content

Commit 9213e9f

Browse files
author
Kristan Kenney
committed
Ensure theme updates on next refresh when changed via CLI
1 parent ac58769 commit 9213e9f

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

web/inc/main.php

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -93,10 +93,6 @@
9393
$user = $_SESSION['user'];
9494
}
9595

96-
if (isset($panel[$user]['THEME'])) {
97-
$_SESSION['userTheme'] = $panel[$user]['THEME'];
98-
}
99-
10096
if (isset($_SESSION['look']) && ($_SESSION['userContext'] === 'admin')) {
10197
$user = $_SESSION['look'];
10298
}
@@ -162,6 +158,10 @@ function top_panel($user, $TAB) {
162158
$panel = json_decode(implode('', $output), true);
163159
unset($output);
164160

161+
if (isset($panel[$user]['THEME'])) {
162+
$_SESSION['userTheme'] = $panel[$user]['THEME'];
163+
}
164+
165165
// Set home location URLs
166166
if (($_SESSION['userContext'] === 'admin') && (!isset($_SESSION['look']))) {
167167
// Display users list for administrators unless they are impersonating a user account

0 commit comments

Comments
 (0)