|
|
<p>I've noticed that the preg_replace_callback in function joomla_build_css_cache does not work with some code like this:</p>
<p> </p>
<p>div.mod-rounded div.module { background-image: url(../images/module_rounded_white_br.png); }<br />div.mod-rounded div.module-2 { background-image: url(../images/module_rounded_white_tr.png); }<br />div.mod-rounded div.module-3 { background-image: url(../images/module_rounded_white_bl.png); }<br />div.mod-rounded div.module-4 { background-image: url(../images/module_rounded_white_tl.png); }</p>
<p> </p>
<p>right now the code is:</p>
<p>preg_replace_callback('/url\([\'"]?(?![a-z]+ \/+)([^\'")]+)[\'"]?\)/i', '_joomla_build_css_path', $contents);</p>
<p>and it fails replacing the urls causing that the css file doesn't work well. So, please, solve it.</p>
<p><br />EDIT:</p>
<p> </p>
<p>I'm sorry, the problem seems to be related with the imports into the function joomla_load_stylesheet, here:</p>
<p> </p>
<p>$contents = preg_replace_callback('/@import\s*(?:url\()?[\'"]?(?![a-z]+ ([^\'"\()]+)[\'"]?\)?;/', '_joomla_load_stylesheet', $contents);</p>
<p> </p>
<p>regards,</p> |
IP Logged
|
|
Last Edited On: 2010-07-05 22:05:10 By fidoboy for the Reason |