fixed wrong path for existence check of theme-file and the default

This commit is contained in:
Ralf Becker 2004-08-06 12:24:42 +00:00
parent 0bd82f3ab8
commit 009a58f9a4

View File

@ -32,11 +32,12 @@
} }
#_debug_array($GLOBALS['phpgw_info']['user']['preferences']['common']); #_debug_array($GLOBALS['phpgw_info']['user']['preferences']['common']);
$theme_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css'; $theme_css = '/phpgwapi/templates/idots/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css';
if(!file_exists($theme_css)) if(!file_exists(PHPGW_SERVER_ROOT.$theme_css))
{ {
$theme_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . '/phpgwapi/templates/idots/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['theme'].'.css'; $theme_css = '/phpgwapi/templates/idots/css/idots.css';
} }
$theme_css = $GLOBALS['phpgw_info']['server']['webserver_url'] . $theme_css;
//pngfix defaults to yes //pngfix defaults to yes
if(!$GLOBALS['phpgw_info']['user']['preferences']['common']['disable_pngfix']) if(!$GLOBALS['phpgw_info']['user']['preferences']['common']['disable_pngfix'])