From cddc262a6963c9ac72e734eac175ba8246771305 Mon Sep 17 00:00:00 2001 From: =?utf8?q?=C3=86var=20Arnfj=C3=B6r=C3=B0=20Bjarmason?= Date: Sat, 8 Oct 2005 15:36:21 +0000 Subject: [PATCH] * Really support for getting new pages from other namespaces than NS_MAIN --- includes/SpecialNewpages.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) 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}"; -- 2.20.1