From: Niklas Laxström Date: Tue, 2 Aug 2005 16:56:24 +0000 (+0000) Subject: little cleanup X-Git-Tag: 1.6.0~2076 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=d9ce1279089905b990290843297821bd223e949f;p=lhc%2Fweb%2Fwiklou.git little cleanup --- diff --git a/includes/SpecialAllpages.php b/includes/SpecialAllpages.php index 359e6fce10..584ed4af09 100644 --- a/includes/SpecialAllpages.php +++ b/includes/SpecialAllpages.php @@ -55,7 +55,7 @@ function namespaceForm ( $namespace = NS_MAIN, $from = '' ) { . htmlspecialchars ( $from ) . '"/>'; $submitbutton = ''; - $out = "
"; + $out = "
"; $out .= ''; $out .= " @@ -64,7 +64,7 @@ function namespaceForm ( $namespace = NS_MAIN, $from = '' ) { - + @@ -191,7 +191,7 @@ function showline( $inpoint, $outpoint, $namespace = NS_MAIN ) { $special = Title::makeTitle( NS_SPECIAL, 'Allpages/' . $inpoint ); $link = $special->escapeLocalUrl( $queryparams ); - $out = wfMsg( + $out = wfMsgHtml( 'alphaindexline', "$inpointf
$namespaceselect $submitbutton ", "$outpointf" @@ -243,7 +243,7 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) { while( ($n < $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) { $t = Title::makeTitle( $s->page_namespace, $s->page_title ); if( $t ) { - $link = ($s->page_is_redirect ? '
' : '' ) . + $link = ($s->page_is_redirect ? '
' : '' ) . $sk->makeKnownLinkObj( $t, htmlspecialchars( $t->getText() ), false, false ) . ($s->page_is_redirect ? '
' : '' ); } else { @@ -271,12 +271,12 @@ function showChunk( $namespace = NS_MAIN, $from, $including = false ) { $out2 .= '
' . $nsForm; $out2 .= '' . $sk->makeKnownLink( $wgContLang->specialPage( "Allpages" ), - wfMsg ( 'allpages' ) ); + wfMsgHtml ( 'allpages' ) ); if ( ($n == $this->maxPerPage) && ($s = $dbr->fetchObject( $res )) ) { $namespaceparam = $namespace ? "&namespace=$namespace" : ""; $out2 .= " | " . $sk->makeKnownLink( $wgContLang->specialPage( "Allpages" ), - wfMsg ( 'nextpage', $s->page_title ), + wfMsgHtml ( 'nextpage', $s->page_title ), "from=" . wfUrlEncode ( $s->page_title ) . $namespaceparam ); } $out2 .= "

"; diff --git a/includes/SpecialSpecialpages.php b/includes/SpecialSpecialpages.php index 7fc0c1b2a5..91b7147579 100644 --- a/includes/SpecialSpecialpages.php +++ b/includes/SpecialSpecialpages.php @@ -12,7 +12,7 @@ function wfSpecialSpecialpages() { global $wgLang, $wgOut, $wgUser, $wgAvailableRights; $wgOut->setRobotpolicy( 'index,nofollow' ); - $sk = $wgUser->getSkin(); + $sk = $wgUser->getSkin(); # Get listable pages, in a 2-d array with the first dimension being user right $pages = SpecialPage::getPages();