From: Alexandre Emsenhuber Date: Tue, 8 May 2012 19:34:40 +0000 (+0200) Subject: Show descriptive error message on invalid title instead of showing an empty line X-Git-Tag: 1.31.0-rc.0~23681^2 X-Git-Url: http://git.cyclocoop.org/data/%24self?a=commitdiff_plain;h=c7958d6bfd9b4ac52de8548d4b7eeee08790379e;p=lhc%2Fweb%2Fwiklou.git Show descriptive error message on invalid title instead of showing an empty line Change-Id: Ided20c465fee37087239a0caef01c7427c5ceeef --- 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() ) );