Code Duplication    Length = 4-4 lines in 2 locations

index.php 1 location

@@ 98-101 (lines=4) @@
95
// 	Check if we are using windows or normal webpage
96
$windowed = false;
97
$tpl_info = EGW_SERVER_ROOT . '/phpgwapi/templates/' . basename($GLOBALS['egw_info']['user']['preferences']['common']['template_set']) . '/setup/setup.inc.php';
98
if (!file_exists($tpl_info))
99
{
100
	$tpl_info = EGW_SERVER_ROOT.'/'.basename($GLOBALS['egw_info']['user']['preferences']['common']['template_set']) . '/setup/setup.inc.php';
101
}
102
if(@file_exists($tpl_info))
103
{
104
	include_once($tpl_info);

filemanager/inc/class.filemanager_ui.inc.php 1 location

@@ 972-975 (lines=4) @@
969
		if ($GLOBALS['egw_info']['flags']['currentapp'] == 'projectmanager')
970
		{
971
			// we need our app.css file
972
			if (!file_exists(EGW_SERVER_ROOT.($css_file='/filemanager/templates/'.$GLOBALS['egw_info']['server']['template_set'].'/app.css')))
973
			{
974
				$css_file = '/filemanager/templates/default/app.css';
975
			}
976
			$GLOBALS['egw_info']['flags']['css'] .= "\n\t\t</style>\n\t\t".'<link href="'.$GLOBALS['egw_info']['server']['webserver_url'].
977
				$css_file.'?'.filemtime(EGW_SERVER_ROOT.$css_file).'" type="text/css" rel="StyleSheet" />'."\n\t\t<style>\n\t\t\t";
978
		}