2010-02-07, 04:20:23
daniele.polencic Wrote:ccagle8 Wrote:does the same thing happen when you have fancy urls turned ON?It works with fancy urls turned on.
Thank You
Pole
The "bug" is here:
Code:
if ($PRETTYURLS == '1') {
if ($parent != '') {$parent = tsl($parent); }
if ($slug == 'index' ) { $slugs = ''; } else { $slugs = $slug; }
$url = $SITEURL . @$parent . $slugs;
} else {
$url = $SITEURL .'index.php?id='.$slugs;
}
And I changed it to:
Code:
if ($slug == 'index' ) { $slugs = ''; } else { $slugs = $slug; }
if ($PRETTYURLS == '1') {
if ($parent != '') {$parent = tsl($parent); }
$url = $SITEURL . @$parent . $slugs;
} else {
$url = $SITEURL .'index.php?id='.$slugs;
}
And it works. Thank you
Pole