Index: trunk/extensions/Translate/tag/PageTranslationHooks.php |
— | — | @@ -62,7 +62,7 @@ |
63 | 63 | * Set the right page content language for translated pages ("Page/xx") |
64 | 64 | * and namespaces used for translating messages (similar to MediaWiki namespace pages) |
65 | 65 | */ |
66 | | - function onPageContentLanguage( $title, &$pageLang ) { |
| 66 | + public static function onPageContentLanguage( $title, &$pageLang ) { |
67 | 67 | global $wgTranslateMessageNamespaces; |
68 | 68 | // For translation pages, parse plural, grammar etc with correct language, and set the right direction |
69 | 69 | if ( TranslatablePage::isTranslationPage( $title ) || in_array( $title->getNamespace(), $wgTranslateMessageNamespaces ) ) { |
Index: trunk/extensions/WikimediaIncubator/IncubatorTest.php |
— | — | @@ -631,7 +631,7 @@ |
632 | 632 | return true; |
633 | 633 | } |
634 | 634 | |
635 | | - function onPageContentLanguage( $title, &$pageLang ) { |
| 635 | + static function onPageContentLanguage( $title, &$pageLang ) { |
636 | 636 | global $wmincTestWikiNamespaces, $wgOut; |
637 | 637 | $prefix = self::analyzePrefix( $title->getText(), /* onlyInfoPage*/ false ); |
638 | 638 | if( $prefix['error'] || !in_array( $title->getNamespace(), |