From: Ævar Arnfjörð Bjarmason Date: Sat, 8 Oct 2005 15:36:21 +0000 (+0000) Subject: * Really support for getting new pages from other namespaces than NS_MAIN X-Git-Tag: 1.6.0~1506 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=cddc262a6963c9ac72e734eac175ba8246771305;p=lhc%2Fweb%2Fwiklou.git * Really support for getting new pages from other namespaces than NS_MAIN --- diff --git a/includes/SpecialNewpages.php b/includes/SpecialNewpages.php index 977ec3e344..1f8f067999 100644 --- a/includes/SpecialNewpages.php +++ b/includes/SpecialNewpages.php @@ -78,12 +78,13 @@ class NewPagesPage extends QueryPage { # Since there is no diff link, we need to give users a way to # mark the article as patrolled if it isn't already + $ns = $wgContLang->getNsText( $result->namespace ); if ( $wgUseRCPatrol && !is_null ( $result->usepatrol ) && $result->usepatrol && $result->patrolled == 0 && $wgUser->isLoggedIn() && ( $wgUser->isAllowed('patrol') || !$wgOnlySysopsCanPatrol ) ) - $link = $skin->makeKnownLink( $result->title, '', "rcid={$result->rcid}" ); + $link = $skin->makeKnownLink( $ns . ':' . $result->title, '', "rcid={$result->rcid}" ); else - $link = $skin->makeKnownLink( $result->title, '' ); + $link = $skin->makeKnownLink( $ns . ':' . $result->title, '' ); $s = "{$d} {$link} ({$length}) . . {$ul}";