4images Forum & Community

4images Issues / Ausgaben => Discussion & Troubleshooting => Topic started by: V@no on May 26, 2003, 06:30:03 AM

Title: little bug
Post by: V@no on May 26, 2003, 06:30:03 AM
Just discovered a little bug:
when u open details.php with mode=search and then vote for the image, it will open details.php without mode=search, so u will lose the images u found, unless u hit "back" browsers button.
to fix this, find in /includes/page_header.php:
Code: [Select]
 "self" => $site_sess->url($self_url),add after:
Code: [Select]
 "self_mode" => $site_sess->url($self_url.((!empty($mode)) ? (preg_match("/\?/", $self_url) ? "&" : "?")."mode=".$mode : "")),

then in /templates/<yourtemplate>/rate_form.html replace {self} with {self_mode}