/** * @param $title Title * @param $prefixdata */ public function __construct( $title, $prefixdata ) { global $wmincProjects, $wmincSisterProjects; $this->mTitle = $title; $this->mPrefix = $prefixdata['prefix']; $this->mLangCode = $prefixdata['lang']; $this->mProjectCode = $prefixdata['project']; $allProjects = array_merge( $wmincProjects, $wmincSisterProjects ); $this->mProjectName = isset( $allProjects[$this->mProjectCode] ) ? $allProjects[$this->mProjectCode] : ''; if( isset( $prefixdata['error'] ) || $title->getNamespace() != NS_MAIN ) { return; } $this->mPortal = IncubatorTest::getSubdomain( 'www', $this->mProjectCode ); $this->mIsSister = array_key_exists( $this->mProjectCode, $wmincSisterProjects ); $this->mDBStatus = ''; $this->mSubStatus = ''; $this->mThisLangData = array( 'type' => 'valid' ); # For later code check feature $this->mLangNames = IncubatorTest::getLanguageNames(); $this->mLangName = ( isset( $this->mLangNames[$this->mLangCode] ) ? $this->mLangNames[$this->mLangCode] : wfMsg( 'wminc-unknownlang', $this->mLangCode ) ); $this->mFormatTitle = wfMsgHtml( 'wminc-infopage-title-' . $this->mProjectCode, $this->mLangName ); return; }