From c7958d6bfd9b4ac52de8548d4b7eeee08790379e Mon Sep 17 00:00:00 2001 From: Alexandre Emsenhuber Date: Tue, 8 May 2012 21:34:40 +0200 Subject: [PATCH] Show descriptive error message on invalid title instead of showing an empty line Change-Id: Ided20c465fee37087239a0caef01c7427c5ceeef --- includes/specials/SpecialFewestrevisions.php | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/specials/SpecialFewestrevisions.php b/includes/specials/SpecialFewestrevisions.php index df7e7afd71..767709501c 100644 --- a/includes/specials/SpecialFewestrevisions.php +++ b/includes/specials/SpecialFewestrevisions.php @@ -75,7 +75,8 @@ class FewestrevisionsPage extends QueryPage { $nt = Title::makeTitleSafe( $result->namespace, $result->title ); if( !$nt ) { - return ''; + return Html::element( 'span', array( 'class' => 'mw-invalidtitle' ), + Linker::getInvalidTitleDescription( $this->getContext(), $result->namespace, $result->title ) ); } $text = htmlspecialchars( $wgContLang->convert( $nt->getPrefixedText() ) ); -- 2.20.1