From 009a58f9a41f0e8b425142a8f2e98c6698f93a9a Mon Sep 17 00:00:00 2001 From: Ralf Becker Date: Fri, 6 Aug 2004 12:24:42 +0000 Subject: [PATCH] fixed wrong path for existence check of theme-file and the default --- phpgwapi/templates/idots/head.inc.php | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/phpgwapi/templates/idots/head.inc.php b/phpgwapi/templates/idots/head.inc.php index 01f03d8d1e..11d6854610 100644 --- a/phpgwapi/templates/idots/head.inc.php +++ b/phpgwapi/templates/idots/head.inc.php @@ -32,11 +32,12 @@ } #_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'; - if(!file_exists($theme_css)) + $theme_css = '/phpgwapi/templates/idots/css/'.$GLOBALS['phpgw_info']['user']['preferences']['common']['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 if(!$GLOBALS['phpgw_info']['user']['preferences']['common']['disable_pngfix'])