Index: trunk/extensions/Narayam/Narayam.hooks.php |
— | — | @@ -50,15 +50,18 @@ |
51 | 51 | * @return array( scheme name => module name ) |
52 | 52 | */ |
53 | 53 | protected static function getSchemes() { |
54 | | - global $wgLanguageCode, $wgLang, $wgNarayamSchemes, $wgRequest; |
| 54 | + global $wgLanguageCode, $wgLang, $wgNarayamSchemes, $wgTitle; |
55 | 55 | |
56 | 56 | $userlangCode = $wgLang->getCode(); |
57 | 57 | $contlangSchemes = isset( $wgNarayamSchemes[$wgLanguageCode] ) ? |
58 | 58 | $wgNarayamSchemes[$wgLanguageCode] : array(); |
59 | 59 | $userlangSchemes = isset( $wgNarayamSchemes[$userlangCode] ) ? |
60 | 60 | $wgNarayamSchemes[$userlangCode] : array(); |
| 61 | + $pagelang = $wgTitle->getPageLanguage()->getCode(); |
| 62 | + $pagelangSchemes = isset( $wgNarayamSchemes[$pagelang] ) ? |
| 63 | + $wgNarayamSchemes[$pagelang] : array(); |
61 | 64 | |
62 | | - $schemes = $userlangSchemes + $contlangSchemes; |
| 65 | + $schemes = $userlangSchemes + $contlangSchemes + $pagelangSchemes; |
63 | 66 | |
64 | 67 | return $schemes; |
65 | 68 | } |