Exemplo n.º 1
0
 static function initAliasList()
 {
     if (!is_null(self::$mAliases)) {
         return;
     }
     global $wgContLang;
     $aliases = $wgContLang->getSpecialPageAliases();
     $missingPages = self::$mList;
     self::$mAliases = array();
     foreach ($aliases as $realName => $aliasList) {
         foreach ($aliasList as $alias) {
             self::$mAliases[$wgContLang->caseFold($alias)] = $realName;
         }
         unset($missingPages[$realName]);
     }
     foreach ($missingPages as $name => $stuff) {
         self::$mAliases[$wgContLang->caseFold($name)] = $name;
     }
 }