r42057 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r42056‎ | r42057 | r42058 >
Date:20:55, 13 October 2008
Author:ialex
Status:old
Tags:
Comment:
Per comments on wikitech-l: Fix capitalisation of ApiBase::dieUsage() calls
Modified paths:
  • /trunk/extensions/Configure/Configure.api.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Configure/Configure.api.php
@@ -13,13 +13,13 @@
1414 $result = $this->getResult();
1515
1616 if( !$wgConf instanceof WebConfiguration ){
17 - $this->dieusage( 'You need to call efConfigureSetup() to use this module', 'noconf' );
 17+ $this->dieUsage( 'You need to call efConfigureSetup() to use this module', 'noconf' );
1818 }
1919
2020 // Version list
2121 if( in_array( 'versionlist', $params['prop'] ) ) {
2222 if( !$wgUser->isAllowed( 'viewconfig' ) )
23 - $this->dieusage( 'viewconfig right required', 'noright' );
 23+ $this->dieUsage( 'viewconfig right required', 'noright' );
2424 $versions = $wgConf->listArchiveFiles();
2525 if( $wgUser->isAllowed( 'viewconfig-interwiki' ) ) {
2626 $oldVersions = $versions;
@@ -39,7 +39,7 @@
4040 // Wiki list
4141 if( in_array( 'wikilist', $params['prop'] ) ) {
4242 if( !$wgUser->isAllowed( 'viewconfig-interwiki' ) && !$wgUser->isAllowed( 'configure-interwiki' ) && !$wgUser->isAllowed( 'extensions-interwiki' ) )
43 - $this->dieusage( 'viewconfig-interwiki, configure-interwiki or extensions-interwiki right required', 'noright' );
 43+ $this->dieUsage( 'viewconfig-interwiki, configure-interwiki or extensions-interwiki right required', 'noright' );
4444 global $wgConfigureWikis;
4545 if( $wgConfigureWikis === false )
4646 $result->addValue( 'configure', 'wikis', array( 'denied' => '' ) );
@@ -55,14 +55,14 @@
5656 // Settings
5757 if( in_array( 'settings', $params['prop'] ) ) {
5858 if( !$wgUser->isAllowed( 'viewconfig' ) )
59 - $this->dieusage( 'viewconfig right required', 'noright' );
 59+ $this->dieUsage( 'viewconfig right required', 'noright' );
6060 $version = $params['version'];
6161 $wiki = $params['wiki'] ? $params['wiki'] : $wgConf->getWiki();
6262 $settingsValues = $wgConf->getOldSettings( $version );
6363 if( !is_array( $settingsValues ) )
64 - $this->dieusage( 'version not found', 'noversion' );
 64+ $this->dieUsage( 'version not found', 'noversion' );
6565 if( !isset( $settingsValues[$wiki] ) || !is_array( $settingsValues[$wiki] ) )
66 - $this->dieusage( 'wiki not found in version', 'nowiki' );
 66+ $this->dieUsage( 'wiki not found in version', 'nowiki' );
6767 $settingsValues = $settingsValues[$wiki];
6868 $conf = ConfigurationSettings::singleton( CONF_SETTINGS_BOTH );
6969 $notEditable = $conf->getNotEditableSettings();
@@ -100,7 +100,7 @@
101101 // Extensions
102102 if( in_array( 'extensions', $params['prop'] ) ) {
103103 if( !$wgUser->isAllowed( 'extensions' ) )
104 - $this->dieusage( 'extensions right required', 'noright' );
 104+ $this->dieUsage( 'extensions right required', 'noright' );
105105 $conf = ConfigurationSettings::singleton( CONF_SETTINGS_EXT );
106106 $ret = array();
107107 foreach( $conf->getAllExtensionsObjects() as $ext ){

Status & tagging log