diff --git a/web/skins/classic/includes/functions.php b/web/skins/classic/includes/functions.php index d72b611bb..bd20dc534 100644 --- a/web/skins/classic/includes/functions.php +++ b/web/skins/classic/includes/functions.php @@ -58,10 +58,18 @@ function xhtmlHeaders($file, $title) { global $skin; $html = array(); foreach ( $files as $file ) { - if ( $cache_bust ) { - $html[] = ''; - } else { - $html[] = ''; + if ( file_exists('skins/'.$skin.'/'.$file) ) { + if ( $cache_bust ) { + $html[] = ''; + } else { + $html[] = ''; + } + } else if ( file_exists($file) ) { + if ( $cache_bust ) { + $html[] = ''; + } else { + $html[] = ''; + } } } $html[] = ''; // So we ge a trailing \n @@ -865,17 +873,19 @@ function xhtmlFooter() { - - - - - - - - - - - +