Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- diff --git a/includes/SpecialPageFactory.php b/includes/SpecialPageFactory.php
- index fa1bca4..eee8bf1 100644
- --- a/includes/SpecialPageFactory.php
- +++ b/includes/SpecialPageFactory.php
- @@ -371,8 +371,10 @@ class SpecialPageFactory {
- global $wgUser;
- $user = $wgUser;
- }
- + global $wgLang;
- $context = RequestContext::newExtraneousContext( Title::newMainPage() );
- $context->setUser( $user );
- + $context->setLanguage( $wgLang );
- foreach ( self::getList() as $name => $rec ) {
- $page = self::getPage( $name );
- if ( $page ) { // not null
Advertisement
Add Comment
Please, Sign In to add comment