sNews 1.7 (current stable version) > Patches/fixes

FIX (double // on links to comments on extra pages)


Patric Ahlqvist:
UPDATE: This Patch is included in the current Official sNews 1.7 Download as of April 15, 2010.

Okidoki... first Popoll, then I experienced a double slash on comments posted onto a new created PAGE. In the new comments function the comments where shown with an extra slash, making it not work. Then a fix making that work produced a odd result to other normal article comments. The newly created PAGE name where added to them links.

How ever in order to get rid of these double slashes, making every thing work a'ok again, please do this:

First, as always, make a copy of existing snews.php. Then inside function new_comments() find:

--- Code: ---$link = isset($r['xsef']) ? $r['xsef'].'/'.$r['csef'] : $r['csef'];
$link .= '/'.$r['asef'];

--- End code ---

Exchange that for (or comment it out):

--- Code: ---unset($link);
if (isset($r['xsef'])) { $link = $r['xsef'].'/'; }
if (isset($r['csef'])) { $link .= $r['csef'].'/'; }             
$link .= $r['asef'];
--- End code ---

All hail to the Matt (mdj) for this as both Popi and I stood blindfoulded ready to get shot ;)


[0] Message Index

Go to full version