Code Duplication    Length = 2-5 lines in 2 locations

Sources/Load.php 2 locations

@@ 1710-1714 (lines=5) @@
1707
	if (!empty($id_theme))
1708
		$id_theme = (int) $id_theme;
1709
	// The theme was specified by REQUEST.
1710
	elseif (!empty($_REQUEST['theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum')))
1711
	{
1712
		$id_theme = (int) $_REQUEST['theme'];
1713
		$_SESSION['id_theme'] = $id_theme;
1714
	}
1715
	// The theme was specified by REQUEST... previously.
1716
	elseif (!empty($_SESSION['id_theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum')))
1717
		$id_theme = (int) $_SESSION['id_theme'];
@@ 1716-1717 (lines=2) @@
1713
		$_SESSION['id_theme'] = $id_theme;
1714
	}
1715
	// The theme was specified by REQUEST... previously.
1716
	elseif (!empty($_SESSION['id_theme']) && (!empty($modSettings['theme_allow']) || allowedTo('admin_forum')))
1717
		$id_theme = (int) $_SESSION['id_theme'];
1718
	// The theme is just the user's choice. (might use ?board=1;theme=0 to force board theme.)
1719
	elseif (!empty($user_info['theme']) && !isset($_REQUEST['theme']))
1720
		$id_theme = $user_info['theme'];