|
|
<p>Hi,</p>
<p>There is a bug while using an @import css feature, the regex of _joomla_load_stylesheet makes a wrong path. I propose here a patch to fix this bug :</p>
<p>In the function _joomla_load_stylesheet() of the file js_merge_php4.php :</p>
<p>Change</p>
<p><span style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;">return preg_replace('/url\(([\'"]?)(?![a-z]+ ([^\'")]+)[\'"]?\)?;/i', 'url(\1'. dirname($filename) .'/', $file);</span></p>
<p><span style="font-family: Arial, Helvetica, sans-serif; line-height: 18px;">to :</span></p>
<p>return preg_replace('/url\(([\'"]?)(?![a-z]+ ([^\'")]+)[\'"]?\)?;/i', 'url('. dirname($filename) .'/\1);', $file);</p>
<p>"fidobody" had the same bug here : <a href="http://www.joomlatags.org/forum/view-recentlist.html?start=100">http://www.joomlatags.org/forum/view-recentlist.html?start=100</a></p>
<p>Rgs,</p>
<p>Vincent Giersch</p>
<p> </p> |
IP Logged
|