Index: trunk/extensions/Configure/Configure.api.php |
— | — | @@ -13,13 +13,13 @@ |
14 | 14 | $result = $this->getResult(); |
15 | 15 | |
16 | 16 | 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' ); |
18 | 18 | } |
19 | 19 | |
20 | 20 | // Version list |
21 | 21 | if( in_array( 'versionlist', $params['prop'] ) ) { |
22 | 22 | if( !$wgUser->isAllowed( 'viewconfig' ) ) |
23 | | - $this->dieusage( 'viewconfig right required', 'noright' ); |
| 23 | + $this->dieUsage( 'viewconfig right required', 'noright' ); |
24 | 24 | $versions = $wgConf->listArchiveFiles(); |
25 | 25 | if( $wgUser->isAllowed( 'viewconfig-interwiki' ) ) { |
26 | 26 | $oldVersions = $versions; |
— | — | @@ -39,7 +39,7 @@ |
40 | 40 | // Wiki list |
41 | 41 | if( in_array( 'wikilist', $params['prop'] ) ) { |
42 | 42 | 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' ); |
44 | 44 | global $wgConfigureWikis; |
45 | 45 | if( $wgConfigureWikis === false ) |
46 | 46 | $result->addValue( 'configure', 'wikis', array( 'denied' => '' ) ); |
— | — | @@ -55,14 +55,14 @@ |
56 | 56 | // Settings |
57 | 57 | if( in_array( 'settings', $params['prop'] ) ) { |
58 | 58 | if( !$wgUser->isAllowed( 'viewconfig' ) ) |
59 | | - $this->dieusage( 'viewconfig right required', 'noright' ); |
| 59 | + $this->dieUsage( 'viewconfig right required', 'noright' ); |
60 | 60 | $version = $params['version']; |
61 | 61 | $wiki = $params['wiki'] ? $params['wiki'] : $wgConf->getWiki(); |
62 | 62 | $settingsValues = $wgConf->getOldSettings( $version ); |
63 | 63 | if( !is_array( $settingsValues ) ) |
64 | | - $this->dieusage( 'version not found', 'noversion' ); |
| 64 | + $this->dieUsage( 'version not found', 'noversion' ); |
65 | 65 | 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' ); |
67 | 67 | $settingsValues = $settingsValues[$wiki]; |
68 | 68 | $conf = ConfigurationSettings::singleton( CONF_SETTINGS_BOTH ); |
69 | 69 | $notEditable = $conf->getNotEditableSettings(); |
— | — | @@ -100,7 +100,7 @@ |
101 | 101 | // Extensions |
102 | 102 | if( in_array( 'extensions', $params['prop'] ) ) { |
103 | 103 | if( !$wgUser->isAllowed( 'extensions' ) ) |
104 | | - $this->dieusage( 'extensions right required', 'noright' ); |
| 104 | + $this->dieUsage( 'extensions right required', 'noright' ); |
105 | 105 | $conf = ConfigurationSettings::singleton( CONF_SETTINGS_EXT ); |
106 | 106 | $ret = array(); |
107 | 107 | foreach( $conf->getAllExtensionsObjects() as $ext ){ |