(bugs 461, 7547) Allow "Categories:" link at bottom of pages to be customized via...
authorAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 3 Nov 2006 05:50:55 +0000 (05:50 +0000)
committerAryeh Gregor <simetrical@users.mediawiki.org>
Fri, 3 Nov 2006 05:50:55 +0000 (05:50 +0000)
RELEASE-NOTES
includes/Skin.php
languages/messages/MessagesEn.php

index d2aa0dd..2ce4a28 100644 (file)
@@ -128,6 +128,8 @@ it from source control: http://www.mediawiki.org/wiki/Download_from_SVN
 * (bug 7723) Add ic: parser function, with alias tc:, which capitalises the first
    letter of each word.
 * (bug 1133) Special:Emailuser: add an option to send yourself a copy your mail.
+* (bug 461) Allow "Categories:" link at bottom of pages to be customized via
+  pagecategorieslink message.
 
 == Languages updated ==
 
index e7e894b..0f9ca2c 100644 (file)
@@ -579,8 +579,7 @@ END;
                $t = $embed . implode ( "{$pop} {$sep} {$embed}" , $wgOut->mCategoryLinks ) . $pop;
 
                $msg = wfMsgExt( 'pagecategories', array( 'parsemag', 'escape' ), count( $wgOut->mCategoryLinks ) );
-               $s = $this->makeKnownLinkObj( SpecialPage::getTitleFor( 'Categories' ),
-                       $msg, 'article=' . urlencode( $wgTitle->getPrefixedDBkey() ) )
+               $s = $this->makeLinkObj( Title::newFromText( wfMsgForContent('pagecategorieslink') ), $msg )
                        . ': ' . $t;
 
                # optional 'dmoz-like' category browser. Will be shown under the list
index 2e94c75..c65247d 100644 (file)
@@ -531,6 +531,7 @@ parent class in order maintain consistency across languages.
 #
 'categories' => 'Categories',
 'pagecategories' => '{{PLURAL:$1|Category|Categories}}',
+'pagecategorieslink' => 'Special:Categories',
 'category_header' => 'Articles in category "$1"',
 'subcategories' => 'Subcategories',