From 59356e22df247c382ea6f4645dc6912eda9c3ad0 Mon Sep 17 00:00:00 2001 From: wangchunsheng Date: Mon, 18 Feb 2013 03:02:55 +0000 Subject: [PATCH] * when comine the css of other style, change the path of the background images. --- build/tools/minifyfront.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/build/tools/minifyfront.php b/build/tools/minifyfront.php index 95cbe4e900..c3cc101e28 100755 --- a/build/tools/minifyfront.php +++ b/build/tools/minifyfront.php @@ -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";