Joomla tags

a real free joomla tag system

  • Increase font size
  • Default font size
  • Decrease font size
 Joomla Tags Support Forum :: Bugs Report
Welcome Guest   
 Subject :Fix Bug while using @import css features.. 2010-08-24 15:01:16 
Vincent Giersch
Apprentice
Joined: 2010-08-24 20:53:21
Posts: 1
Location
<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
Page # 


Powered by ccBoard


Newsletter

Please subscribe to our newsletter to stay up-to-date with the latest news and release notifications delivered to your inbox.
Tags for Joomla



Joomla Plugin:ReadMoreExt