r106669 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r106668‎ | r106669 | r106670 >
Date:18:25, 19 December 2011
Author:ialex
Status:ok
Tags:
Comment:
Output some simple error message when no suitable pages were found instead of nothing at all
Modified paths:
  • /trunk/extensions/LandingCheck/LandingCheck.i18n.php (modified) (history)
  • /trunk/extensions/LandingCheck/SpecialLandingCheck.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LandingCheck/SpecialLandingCheck.php
@@ -188,6 +188,11 @@
189189 return;
190190 }
191191 }
 192+
 193+ # Output a simple error message if no pages were found
 194+ $this->setHeaders();
 195+ $this->outputHeader();
 196+ $wgOut->addWikiMsg( 'landingcheck-nopage' );
192197 }
193198
194199 /**
Index: trunk/extensions/LandingCheck/LandingCheck.i18n.php
@@ -14,6 +14,7 @@
1515 $messages['en'] = array(
1616 'landingcheck-desc' => 'Facilitates the use of geotargeted localized landing pages',
1717 'landingcheck' => 'LandingCheck',
 18+ 'landingcheck-nopage' => 'No pages were found while performing the request.',
1819 );
1920
2021 /** Message documentation (Message documentation)

Status & tagging log