Code Duplication    Length = 2-5 lines in 2 locations

Sources/Load.php 2 locations

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