From: Rob Church Date: Tue, 10 Jul 2007 12:25:06 +0000 (+0000) Subject: * (bug 9903) Don't mark redirects in categories as stubs [wrong semantics] X-Git-Tag: 1.31.0-rc.0~52168 X-Git-Url: http://git.cyclocoop.org//%22%22.str_replace%28%27%22%27%2C?a=commitdiff_plain;h=508f8327e29f7ec1538af1ab836ce47cdf414ae5;p=lhc%2Fweb%2Fwiklou.git * (bug 9903) Don't mark redirects in categories as stubs [wrong semantics] * Escaping issue --- 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 ) ); }