|
@@ 1672-1676 (lines=5) @@
|
| 1669 |
|
if (!empty($id_theme)) |
| 1670 |
|
$id_theme = (int) $id_theme; |
| 1671 |
|
// The theme was specified by REQUEST. |
| 1672 |
|
elseif (!empty($_REQUEST['theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum'))) |
| 1673 |
|
{ |
| 1674 |
|
$id_theme = (int) $_REQUEST['theme']; |
| 1675 |
|
$_SESSION['id_theme'] = $id_theme; |
| 1676 |
|
} |
| 1677 |
|
// The theme was specified by REQUEST... previously. |
| 1678 |
|
elseif (!empty($_SESSION['id_theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum'))) |
| 1679 |
|
$id_theme = (int) $_SESSION['id_theme']; |
|
@@ 1678-1679 (lines=2) @@
|
| 1675 |
|
$_SESSION['id_theme'] = $id_theme; |
| 1676 |
|
} |
| 1677 |
|
// The theme was specified by REQUEST... previously. |
| 1678 |
|
elseif (!empty($_SESSION['id_theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum'))) |
| 1679 |
|
$id_theme = (int) $_SESSION['id_theme']; |
| 1680 |
|
// The theme is just the user's choice. (might use ?board=1;theme=0 to force board theme.) |
| 1681 |
|
elseif (!empty($user_info['theme']) && !isset($_REQUEST['theme'])) |
| 1682 |
|
$id_theme = $user_info['theme']; |