|
|
Subject :error with suggestion to fix: DOCUMENT_ROOT and JPATH_ROOT is not the same!
<p>Hi, I've found a bug in CssJsCompress.php in (I think) latest version 3.5 at line 259. The Bug is, that the Image-Paths in the joined Css-File are not correct.</p>
<p>Much Webhoster use symbolic links to increase safety. So it sometimes happens, that</p>
<p>$_SERVER (your extension uses this at line 259) and</p>
<p>dirname(__FILE__) (Joomla gets the JPATH_ROOT this way) are not the same.</p>
<p>So change line 259 from</p>
<p>$link=$_SERVER['DOCUMENT_ROOT'].DS.$link;
<p>to</p>
<p>$link=JPATH_ROOT.DS.$link;</p>
<p>and everything works fine!</p>
<p>Thank you for this great extension. Do you consider to make a version for Joomla 1.6?</p> |
IP Logged
|