Code Duplication    Length = 2-8 lines in 2 locations

Sources/MessageIndex.php 1 location

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

Sources/Load.php 1 location

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