From 508f8327e29f7ec1538af1ab836ce47cdf414ae5 Mon Sep 17 00:00:00 2001 From: Rob Church Date: Tue, 10 Jul 2007 12:25:06 +0000 Subject: [PATCH] * (bug 9903) Don't mark redirects in categories as stubs [wrong semantics] * Escaping issue --- RELEASE-NOTES | 1 + includes/CategoryPage.php | 9 +++------ 2 files changed, 4 insertions(+), 6 deletions(-) diff --git a/RELEASE-NOTES b/RELEASE-NOTES index 2ecc411a2d..b4d3af0cc6 100644 --- a/RELEASE-NOTES +++ b/RELEASE-NOTES @@ -268,6 +268,7 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN * (bug 10495) $wgMemcachedDebug set twice in includes/DefaultSettings.php * (bug 10316) Prevent inconsistent cached skin settings in gen=js by setting the intended skin directly in the URL. +* (bug 9903) Don't mark redirects in categories as stubs == API changes since 1.10 == diff --git a/includes/CategoryPage.php b/includes/CategoryPage.php index 40c465a3c3..c9f11e9827 100644 --- a/includes/CategoryPage.php +++ b/includes/CategoryPage.php @@ -165,12 +165,9 @@ class CategoryViewer { */ function addPage( $title, $sortkey, $pageLength, $isRedirect = false ) { global $wgContLang; - $link = $this->getSkin()->makeSizeLinkObj( - $pageLength, $title, $wgContLang->convert( $title->getPrefixedText() ) - ); - if ($isRedirect) - $link = ''.$link.''; - $this->articles[] = $link; + $this->articles[] = $isRedirect + ? '' . $this->getSkin()->makeKnownLinkObj( $title ) . '' + : $this->getSkin()->makeSizeLinkObj( $pageLength, $title ); $this->articles_start_char[] = $wgContLang->convert( $wgContLang->firstChar( $sortkey ) ); } -- 2.20.1