示例#1
0
 /**
  * Get the singleton if we don't want a specific wiki
  * @param $wiki String An id for a remote wiki
  * @return Conf child
  */
 public static function load($wiki = false)
 {
     throw new MWException("Not working yet, don't attempt to use this");
     if (!self::$__instance) {
         /**global $wgConfiguration;
         			self::$__instance = self::newFromSettings( $wgConfiguration );*/
     }
     if ($wiki && $wiki != self::$__instance->getWikiId()) {
         // Load configuration for a different wiki, not sure how
         // we're gonna do this yet
         return null;
     }
     return self::$__instance;
 }