Update of /cvsroot/phpwiki/phpwiki/lib
In directory usw-pr-cvs1:/tmp/cvs-serv9617/lib
Modified Files:
Tag: release-1_2-branch
stdlib.php
Log Message:
Applied SF patch #479753 from Carsten Klapp: Eliminate trailing
commans in the LinkRelatedpages section at the bottom of each page.
Index: stdlib.php
===================================================================
RCS file: /cvsroot/phpwiki/phpwiki/lib/stdlib.php,v
retrieving revision 1.21.2.5
retrieving revision 1.21.2.6
diff -C2 -r1.21.2.5 -r1.21.2.6
*** stdlib.php 2001/08/18 01:50:47 1.21.2.5
--- stdlib.php 2001/11/08 22:20:19 1.21.2.6
***************
*** 391,395 ****
if(isset($links['in'][$i])) {
list($name, $score) = $links['in'][$i];
! $txt .= LinkExistingWikiWord($name) . " ($score), ";
}
}
--- 391,398 ----
if(isset($links['in'][$i])) {
list($name, $score) = $links['in'][$i];
! if($i>0) {
! $txt .= ", ";
! }
! $txt .= LinkExistingWikiWord($name) . " ($score)";
}
}
***************
*** 402,406 ****
list($name, $score) = $links['out'][$i];
if(IsWikiPage($dbi, $name))
! $txt .= LinkExistingWikiWord($name) . " ($score), ";
}
}
--- 405,412 ----
list($name, $score) = $links['out'][$i];
if(IsWikiPage($dbi, $name))
! if($i>0) {
! $txt .= ", ";
! }
! $txt .= LinkExistingWikiWord($name) . " ($score)";
}
}
***************
*** 412,416 ****
if(isset($links['popular'][$i])) {
list($name, $score) = $links['popular'][$i];
! $txt .= LinkExistingWikiWord($name) . " ($score), ";
}
}
--- 418,425 ----
if(isset($links['popular'][$i])) {
list($name, $score) = $links['popular'][$i];
! if($i>0) {
! $txt .= ", ";
! }
! $txt .= LinkExistingWikiWord($name) . " ($score)";
}
}
|