Code Duplication    Length = 2-8 lines in 2 locations

Sources/Load.php 1 location

@@ 2310-2317 (lines=8) @@
2307
		$settings['default_theme_dir'] = $boarddir . '/Themes/default';
2308
		$settings['template_dirs'][] = $settings['default_theme_dir'];
2309
2310
		if (!empty($context['user']['is_admin']) && !isset($_GET['th']))
2311
		{
2312
			loadLanguage('Errors');
2313
			echo '
2314
<div class="alert errorbox">
2315
	<a href="', $scripturl . '?action=admin;area=theme;sa=list;' . $context['session_var'] . '=' . $context['session_id'], '" class="alert">', $txt['theme_dir_wrong'], '</a>
2316
</div>';
2317
		}
2318
2319
		loadTemplate($template_name);
2320
	}

Sources/MessageIndex.php 1 location

@@ 771-772 (lines=2) @@
768
	checkSession('request');
769
770
	// Lets go straight to the restore area.
771
	if (isset($_REQUEST['qaction']) && $_REQUEST['qaction'] == 'restore' && !empty($_REQUEST['topics']))
772
		redirectexit('action=restoretopic;topics=' . implode(',', $_REQUEST['topics']) . ';' . $context['session_var'] . '=' . $context['session_id']);
773
774
	if (isset($_SESSION['topicseen_cache']))
775
		$_SESSION['topicseen_cache'] = array();