* when comine the css of other style, change the path of the background images.

This commit is contained in:
wangchunsheng
2013-02-18 03:02:55 +00:00
parent da6816b494
commit 59356e22df
+5 -1
View File
@@ -58,7 +58,11 @@ foreach($langs as $lang)
/* Css file for current lang and current them. */
$cssCode .= file_get_contents($themeRoot . "lang/$lang.css");
if($theme != 'default') $cssCode .= file_get_contents($themeRoot . $theme . '/style.css');
if($theme != 'default')
{
$themCode = file_get_contents($themeRoot . $theme . '/style.css');
$cssCode .= str_replace('./images', "../$theme/images", $themCode);
}
/* Combine them. */
$cssFile = $themeRoot . "default/$lang.$theme.css";