r75941 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r75940‎ | r75941 | r75942 >
Date:17:53, 3 November 2010
Author:kaldari
Status:resolved (Comments)
Tags:
Comment:
support added for fallback languages
Modified paths:
  • /trunk/extensions/LandingCheck/LandingCheck.php (modified) (history)
  • /trunk/extensions/LandingCheck/SpecialLandingCheck.php (modified) (history)

Diff [purge]

Index: trunk/extensions/LandingCheck/LandingCheck.php
@@ -13,7 +13,7 @@
1414 $wgExtensionCredits['specialpage'][] = array(
1515 'path' => __FILE__,
1616 'name' => 'LandingCheck',
17 - 'version' => '1.1.1',
 17+ 'version' => '1.2',
1818 'url' => 'http://www.mediawiki.org/wiki/Extension:LandingCheck',
1919 'author' => 'Ryan Kaldari',
2020 'descriptionmsg' => 'landingcheck-desc',
Index: trunk/extensions/LandingCheck/SpecialLandingCheck.php
@@ -35,7 +35,8 @@
3636 // Build array of landing pages to check for
3737 $targetTexts = array(
3838 $landingPage . '/' . $language . '/' . $country,
39 - $landingPage . '/' . $language
 39+ $landingPage . '/' . $language,
 40+ $landingPage . '/' . Language::getFallbackFor( $language )
4041 );
4142 if ( $language != 'en' ) {
4243 $targetTexts[] = $landingPage . '/en'; // English fallback

Comments

#Comment by Nikerabbit (talk | contribs)   19:27, 3 November 2010

Fixed to consider full fallback chain in r75952.

Status & tagging log