(bug 42173) Standardize categories special pages output
This change removes namespace prefix from [[Special:UncategorizedCategories]], so the output is consistent with the other categories pages. Change-Id: I033e570754ca81be900a1f5482b8429583ab9172
This commit is contained in:
parent
b05054de46
commit
5195544061
2 changed files with 14 additions and 0 deletions
|
|
@ -71,6 +71,7 @@ production.
|
|||
actually sorted.
|
||||
* (bug 2865) User interface HTML elements don't use lang attribute
|
||||
(completed the fix by adding the lang attribute to firstHeading)
|
||||
* (bug 42173) Removed namespace prefixes on Special:UncategorizedCategories.
|
||||
|
||||
=== API changes in 1.21 ===
|
||||
* prop=revisions can now report the contentmodel and contentformat, see docs/contenthandler.txt
|
||||
|
|
|
|||
|
|
@ -31,4 +31,17 @@ class UncategorizedCategoriesPage extends UncategorizedPagesPage {
|
|||
parent::__construct( $name );
|
||||
$this->requestedNamespace = NS_CATEGORY;
|
||||
}
|
||||
|
||||
/**
|
||||
* Formats the result
|
||||
* @param $skin The current skin
|
||||
* @param $result The query result
|
||||
* @return string The category link
|
||||
*/
|
||||
function formatResult ( $skin, $result ) {
|
||||
$title = Title::makeTitle( NS_CATEGORY, $result->title );
|
||||
$text = $title->getText();
|
||||
|
||||
return Linker::linkKnown( $title, htmlspecialchars( $text ) );
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue