Index: trunk/extensions/LandingCheck/LandingCheck.php |
— | — | @@ -21,7 +21,7 @@ |
22 | 22 | |
23 | 23 | // If there are any countries for which the country page should be the fallback rather than a |
24 | 24 | // language page, add its country code to this array. |
25 | | -$priorityCountries = array(); |
| 25 | +$wgPriorityCountries = array(); |
26 | 26 | |
27 | 27 | $dir = dirname( __FILE__ ) . '/'; |
28 | 28 | |
Index: trunk/extensions/LandingCheck/SpecialLandingCheck.php |
— | — | @@ -17,7 +17,7 @@ |
18 | 18 | } |
19 | 19 | |
20 | 20 | public function execute( $sub ) { |
21 | | - global $wgOut, $wgRequest, $priorityCountries; |
| 21 | + global $wgOut, $wgRequest, $wgPriorityCountries; |
22 | 22 | |
23 | 23 | // Pull in query string parameters |
24 | 24 | $language = $wgRequest->getVal( 'language', 'en' ); |
— | — | @@ -32,7 +32,7 @@ |
33 | 33 | 'referrer' => $wgRequest->getHeader( 'referer' ) |
34 | 34 | ) ); |
35 | 35 | |
36 | | - if ( in_array( $country, $priorityCountries ) ) { |
| 36 | + if ( in_array( $country, $wgPriorityCountries ) ) { |
37 | 37 | // Build array of landing pages to check for |
38 | 38 | $targetTexts = array( |
39 | 39 | $landingPage . '/' . $country . '/' . $language, |