r86892 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r86891‎ | r86892 | r86893 >
Date:19:37, 25 April 2011
Author:maxsem
Status:ok
Tags:
Comment:
Fixes related to extension registration
Modified paths:
  • /trunk/extensions/ApiSandbox/ApiSandbox.i18n.php (modified) (history)
  • /trunk/extensions/ApiSandbox/ApiSandbox.php (modified) (history)
  • /trunk/extensions/ApiSandbox/SpecialApiSandbox.php (modified) (history)

Diff [purge]

Index: trunk/extensions/ApiSandbox/SpecialApiSandbox.php
@@ -23,7 +23,6 @@
2424 }
2525
2626 $this->setHeaders();
27 - $out->setPageTitle( wfMessage( 'apisb-title' )->parse() );
2827 $out->addModules( 'ext.apiSandbox' );
2928
3029 $out->addHTML( '<noscript>' . wfMessage( 'apisb-no-js' )->escaped() . '</noscript>
Index: trunk/extensions/ApiSandbox/ApiSandbox.i18n.php
@@ -4,7 +4,7 @@
55
66 $messages['en'] = array(
77 'apisb-desc' => 'Allows to debug [http://www.mediawiki.org/wiki/API MediaWiki API] calls from browser',
8 - 'apisb-title' => 'API sandbox',
 8+ 'apisandbox' => 'API sandbox',
99 'apisb-no-js' => "'''Error''': this feature requires JavaScript.",
1010 'apisb-intro' => 'Blah blah intro, dude!',
1111 'apisb-api-disabled' => 'API is disabled on this site.',
Index: trunk/extensions/ApiSandbox/ApiSandbox.php
@@ -21,12 +21,11 @@
2222 $wgAutoloadClasses['SpecialApiSandbox'] = $dir . 'SpecialApiSandbox.php';
2323
2424 $wgSpecialPages['ApiSandbox'] = 'SpecialApiSandbox';
25 -$wgSpecialPageGroups['Gadgets'] = 'wiki';
 25+$wgSpecialPageGroups['ApiSandbox'] = 'wiki';
2626
2727 $wgResourceModules['ext.apiSandbox'] = array(
2828 'scripts' => 'ext.apiSandbox.js',
2929 'styles' => 'ext.apiSandbox.css',
30 - 'dependencies' => array( 'jquery.json' ),
3130 'localBasePath' => dirname( __FILE__ ),
3231 'remoteExtPath' => 'ApiSandbox',
3332 'messages' => array( 'apisb-loading', 'apisb-load-error', 'apisb-select-value' ),

Status & tagging log