From 59280c4c929dc9c073e48879d3d44d5e55499c1c Mon Sep 17 00:00:00 2001 From: Liuxinyu970226 <541329866@qq.com> Date: Thu, 18 Aug 2016 00:47:05 +0000 Subject: [PATCH] Revert "Use display name in category page subheadings if provided" This reverts commit 8ccde8984913896d59a3c2b529768cfe74100afd. For the reason, see T43720#2531092 Bug: T149510 Change-Id: Id1ace9599642a36b333c63eaeebab0537466e7bd --- includes/CategoryViewer.php | 25 ++++++------------------- 1 file changed, 6 insertions(+), 19 deletions(-) diff --git a/includes/CategoryViewer.php b/includes/CategoryViewer.php index 490f548135..8dd3f5c516 100644 --- a/includes/CategoryViewer.php +++ b/includes/CategoryViewer.php @@ -407,26 +407,11 @@ class CategoryViewer extends ContextSource { return $r; } - /** - * Return pretty name which is display name if given and different from prefix text or - * the unprefixed page name. - * - * @return string HTML safe name. - */ - function getPrettyPageNameHtml() { - $displayTitle = $this->getOutput()->getPageTitle(); - if ( $displayTitle === $this->getTitle()->getPrefixedText() ) { - return htmlspecialchars( $this->getTitle()->getText() ); - } else { - return $displayTitle; - } - } - /** * @return string */ function getPagesSection() { - $name = $this->getPrettyPageNameHtml(); + $ti = wfEscapeWikiText( $this->title->getText() ); # Don't show articles section if there are none. $r = ''; @@ -442,7 +427,7 @@ class CategoryViewer extends ContextSource { if ( $rescnt > 0 ) { $r = "