addModules( array( 'ext.visualEditor.core' ) ); } return true; } /** * Determines whether or not we should construct the loader. * * @param $output OutputPage * @param $skin Skin */ public static function loadVisualEditor( &$output, &$skin ) { global $wgTitle; // Vector skin supported for now. if ( $skin->getSkinName() !== 'vector' ) { return false; } // Check Namespace if ($wgTitle->getNamespace() !== NS_VISUALEDITOR) { return false; } //TODO: user permissions... return true; } }