Code Duplication    Length = 2-5 lines in 2 locations

Sources/Load.php 2 locations

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