From: Ævar Arnfjörð Bjarmason Date: Sat, 7 May 2005 07:44:51 +0000 (+0000) Subject: * (bug 2101) a single variable was being used as both a counter and as a X-Git-Tag: 1.5.0alpha2~276 X-Git-Url: http://git.cyclocoop.org/%28?a=commitdiff_plain;h=0dba7725f36c864a4ea6498d7c4053e8d2de0797;p=lhc%2Fweb%2Fwiklou.git * (bug 2101) a single variable was being used as both a counter and as a temporary variable causing invalid XHTML output. --- diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 73d7ce1446..b4142aad89 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -257,9 +257,9 @@ function indexShowChunk( $namespace = NS_MAIN, $from, $invert ) { $t = Title::makeTitle( $s->page_namespace, $s->page_title ); if( $t ) { $ns = $s->page_namespace; - $s = $invert && $namespaces[$ns] != $wgContLang->getNsText(NS_MAIN) ? ':' : ''; - $n = $invert ? $namespaces[$ns] : ''; - $link = $sk->makeKnownLinkObj( $t, $t->getText(), false, false, $n . $s ); + $prefix = $invert ? $namespaces[$ns] : ''; + $prefix .= $invert && $namespaces[$ns] != $wgContLang->getNsText(NS_MAIN) ? ':' : ''; + $link = $sk->makeKnownLinkObj( $t, $t->getText(), false, false, $prefix ); } else { $link = '[[' . htmlspecialchars( $s->page_title ) . ']]'; }