Quote:
Originally Posted by intel352
well, at least part of my logic was 'sane' 
glad it's working now, i'll be sure to include the working change in the next release
EDIT: please test 2 situations for me if you get a chance.
URL 1: http://www.yoursite.com/path2shop/image.php?productid=1234
URL 2: image.php?productid=1234
I'm wondering if both will be matched in the revised code, or just the 2nd url. (sorry, i'd test this myself, but the past few days I've been knee deep in another project for my company)
|
I can't tell for sure, since I've heavily mod'ed image.php, but testing with some other fully-qualified URL's, your're right - only the second case works.
What I have found extra is;
- The eregi_replace can go back in, but with the addition of a slash, as follows;
Code:
$path = eregi_replace($xcart_web_dir.'/','',$path);
- the regexp within the foreach further down needs a leading ^ too;
Code:
foreach($files AS $i=>$file){
$f1[$i] = '@^'.$file.'\.php@i';
$f2[$i] = $file.'.html';
}
These changes work for me, but then my skin is heavily modified, so I might be "unusual"
