|
@@ 1694-1698 (lines=5) @@
|
| 1691 |
|
if (!empty($id_theme)) |
| 1692 |
|
$id_theme = (int) $id_theme; |
| 1693 |
|
// The theme was specified by REQUEST. |
| 1694 |
|
elseif (!empty($_REQUEST['theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum'))) |
| 1695 |
|
{ |
| 1696 |
|
$id_theme = (int) $_REQUEST['theme']; |
| 1697 |
|
$_SESSION['id_theme'] = $id_theme; |
| 1698 |
|
} |
| 1699 |
|
// The theme was specified by REQUEST... previously. |
| 1700 |
|
elseif (!empty($_SESSION['id_theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum'))) |
| 1701 |
|
$id_theme = (int) $_SESSION['id_theme']; |
|
@@ 1700-1701 (lines=2) @@
|
| 1697 |
|
$_SESSION['id_theme'] = $id_theme; |
| 1698 |
|
} |
| 1699 |
|
// The theme was specified by REQUEST... previously. |
| 1700 |
|
elseif (!empty($_SESSION['id_theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum'))) |
| 1701 |
|
$id_theme = (int) $_SESSION['id_theme']; |
| 1702 |
|
// The theme is just the user's choice. (might use ?board=1;theme=0 to force board theme.) |
| 1703 |
|
elseif (!empty($user_info['theme']) && !isset($_REQUEST['theme'])) |
| 1704 |
|
$id_theme = $user_info['theme']; |