Code Duplication    Length = 2-5 lines in 2 locations

Sources/Load.php 2 locations

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