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";