$result = $this->getBuffer();
$context = new DerivativeContext( $this->getMain() );
- $context->setUser( new User ); // anon to avoid caching issues
$context->setSkin( SkinFactory::getDefaultInstance()->makeSkin( 'apioutput' ) );
+ $context->setTitle( SpecialPage::getTitleFor( 'ApiHelp' ) );
$out = new OutputPage( $context );
+ $context->setOutput( $out );
+
$out->addModules( 'mediawiki.apipretty' );
$out->setPageTitle( $context->msg( 'api-format-title' ) );
- $context->setOutput( $out );
$header = $context->msg( 'api-format-prettyprint-header' )
->params( $format, strtolower( $format ) )
// Get the help
$context = new DerivativeContext( $this->getMain()->getContext() );
- $context->setUser( new User ); // anon to avoid caching issues
$context->setSkin( SkinFactory::getDefaultInstance()->makeSkin( 'apioutput' ) );
$context->setLanguage( $this->getMain()->getLanguage() );
+ $context->setTitle( SpecialPage::getTitleFor( 'ApiHelp' ) );
$out = new OutputPage( $context );
$context->setOutput( $out );
parent::setupSkinUserCss( $out );
$out->addModuleStyles( 'mediawiki.skinning.interface' );
}
+
+ // Skip work and hooks for stuff we don't use
+
+ function buildSidebar() {
+ return array();
+ }
+
+ function getNewtalks() {
+ return '';
+ }
+
+ function getSiteNotice() {
+ return '';
+ }
+
+ public function getLanguages() {
+ return array();
+ }
+
+ protected function buildPersonalUrls() {
+ return array();
+ }
+
+ protected function buildContentNavigationUrls() {
+ return array();
+ }
+
+ protected function buildNavUrls() {
+ return array();
+ }
}
<?php
}
+
+ // Skip work and hooks for stuff we don't use
+
+ function getToolbox() {
+ return array();
+ }
+
+ function getPersonalTools() {
+ return array();
+ }
+
+ function getSidebar( $options = array() ) {
+ return array();
+ }
}