mirror of
https://github.com/EGroupware/egroupware.git
synced 2024-12-25 16:18:57 +01:00
remove $windowed flag, as all template-sets are windows nowadays
it also caused setting a non-existing template-set to display "/usr/share/egroupware/api/src/loader/deprecated_factory.php (58)"
This commit is contained in:
parent
3e0ec508c7
commit
72aa549f88
21
index.php
21
index.php
@ -100,24 +100,7 @@ if (isset($_GET['tz']))
|
||||
}
|
||||
}
|
||||
|
||||
// Check if we are using windows or normal webpage
|
||||
$windowed = false;
|
||||
$tpl_info = EGW_SERVER_ROOT . '/api/templates/' . basename($GLOBALS['egw_info']['user']['preferences']['common']['template_set']) . '/setup/setup.inc.php';
|
||||
if (!file_exists($tpl_info))
|
||||
{
|
||||
$tpl_info = EGW_SERVER_ROOT.'/'.basename($GLOBALS['egw_info']['user']['preferences']['common']['template_set']) . '/setup/setup.inc.php';
|
||||
}
|
||||
if(@file_exists($tpl_info))
|
||||
{
|
||||
include_once($tpl_info);
|
||||
if($GLOBALS['egw_info']['template'][$GLOBALS['egw_info']['user']['preferences']['common']['template_set']]['windowed'])
|
||||
{
|
||||
$windowed = true;
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
if($app == 'api' && !$class && !$api_requested && !($windowed && $_GET['cd'] == 'yes' && !Api\Header\UserAgent::mobile()) && $GLOBALS['egw_info']['user']['preferences']['common']['template_set'] == 'idots')
|
||||
if($app == 'api' && !$class && !$api_requested && !($_GET['cd'] === 'yes' && !Api\Header\UserAgent::mobile()) && $GLOBALS['egw_info']['user']['preferences']['common']['template_set'] == 'idots')
|
||||
{
|
||||
if ($GLOBALS['egw_info']['server']['force_default_app'] && $GLOBALS['egw_info']['server']['force_default_app'] != 'user_choice')
|
||||
{
|
||||
@ -133,7 +116,7 @@ if($app == 'api' && !$class && !$api_requested && !($windowed && $_GET['cd'] ==
|
||||
}
|
||||
}
|
||||
|
||||
if($windowed && $_GET['cd'] == 'yes')
|
||||
if ($_GET['cd'] == 'yes' || empty($class))
|
||||
{
|
||||
$GLOBALS['egw_info']['flags'] = array(
|
||||
'noheader' => False,
|
||||
|
Loading…
Reference in New Issue
Block a user