Code Duplication    Length = 2-8 lines in 2 locations

Sources/MessageIndex.php 1 location

@@ 783-784 (lines=2) @@
780
	checkSession('request');
781
782
	// Lets go straight to the restore area.
783
	if (isset($_REQUEST['qaction']) && $_REQUEST['qaction'] == 'restore' && !empty($_REQUEST['topics']))
784
		redirectexit('action=restoretopic;topics=' . implode(',', $_REQUEST['topics']) . ';' . $context['session_var'] . '=' . $context['session_id']);
785
786
	if (isset($_SESSION['topicseen_cache']))
787
		$_SESSION['topicseen_cache'] = array();

Sources/Load.php 1 location

@@ 2365-2372 (lines=8) @@
2362
		$settings['default_theme_dir'] = $boarddir . '/Themes/default';
2363
		$settings['template_dirs'][] = $settings['default_theme_dir'];
2364
2365
		if (!empty($context['user']['is_admin']) && !isset($_GET['th']))
2366
		{
2367
			loadLanguage('Errors');
2368
			echo '
2369
<div class="alert errorbox">
2370
	<a href="', $scripturl . '?action=admin;area=theme;sa=list;' . $context['session_var'] . '=' . $context['session_id'], '" class="alert">', $txt['theme_dir_wrong'], '</a>
2371
</div>';
2372
		}
2373
2374
		loadTemplate($template_name);
2375
	}