Code Duplication    Length = 2-8 lines in 2 locations

Sources/MessageIndex.php 1 location

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

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
	}