Krenair

Untitled

Jan 6th, 2013
123
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Diff 0.71 KB | None | 0 0
  1. diff --git a/includes/SpecialPageFactory.php b/includes/SpecialPageFactory.php
  2. index fa1bca4..eee8bf1 100644
  3. --- a/includes/SpecialPageFactory.php
  4. +++ b/includes/SpecialPageFactory.php
  5. @@ -371,8 +371,10 @@ class SpecialPageFactory {
  6.                         global $wgUser;
  7.                         $user = $wgUser;
  8.                 }
  9. +               global $wgLang;
  10.                 $context = RequestContext::newExtraneousContext( Title::newMainPage() );
  11.                 $context->setUser( $user );
  12. +               $context->setLanguage( $wgLang );
  13.                 foreach ( self::getList() as $name => $rec ) {
  14.                         $page = self::getPage( $name );
  15.                         if ( $page ) { // not null
Advertisement
Add Comment
Please, Sign In to add comment