Index: trunk/extensions/MWReleases/MWReleases.i18n.php |
— | — | @@ -10,9 +10,8 @@ |
11 | 11 | */ |
12 | 12 | $messages['en'] = array( |
13 | 13 | 'mwreleases-desc' => 'Adds a [[Mediawiki:Mwreleases-list|list]] of supported releases, accessible via the API', |
14 | | - 'mwreleases-list' => '# List the current and other active supported MediaWiki releases like this: |
15 | | -# current:1.15.1 |
16 | | -# supported:1.14.1' |
| 14 | + 'releasemanager' => 'Release manager', |
| 15 | + 'releasemanager-header' => 'Manage the MediaWiki release list. Create a new release or manage the current ones', |
17 | 16 | ); |
18 | 17 | |
19 | 18 | /** Message documentation (Message documentation) |
Index: trunk/extensions/MWReleases/MWReleases.php |
— | — | @@ -42,6 +42,18 @@ |
43 | 43 | ); |
44 | 44 | |
45 | 45 | $dir = dirname( __FILE__ ) . '/'; |
| 46 | + |
| 47 | +$wgAutoloadClasses['MWReleases'] = $dir . 'MWReleases_body.php'; |
46 | 48 | $wgAutoloadClasses['ApiMWReleases'] = $dir . 'ApiMWReleases.php'; |
| 49 | +$wgAutoloadClasses['SpecialMediawikiReleases'] = $dir . 'SpecialMediawikiReleases.php'; |
| 50 | +$wgAutoloadClasses['SpecialReleaseManager'] = $dir . 'SpecialReleaseManager.php'; |
| 51 | +$wgAutoloadClasses['MWReleasesHooks'] = $dir . 'MWReleases.hooks.php'; |
47 | 52 | $wgExtensionMessagesFiles['MWReleases'] = $dir . 'MWReleases.i18n.php'; |
| 53 | +$wgExtensionAliasesFiles['MWReleases'] = $dir . 'MWReleases.alias.php'; |
| 54 | + |
| 55 | +$wgSpecialPages['MediawikiReleases'] = 'SpecialMediawikiReleases'; |
| 56 | +$wgSpecialPages['ReleaseManager'] = 'SpecialReleaseManager'; |
48 | 57 | $wgAPIModules['mwreleases'] = 'ApiMWReleases'; |
| 58 | +$wgHooks['LoadExtensionSchemaUpdates'][] = 'MWReleasesHooks::onLoadExtensionSchemaUpdates'; |
| 59 | +$wgHooks['ParserFirstCallInit'][] = 'MWReleasesHooks::onParserFirstCallInit'; |
| 60 | +$wgAvailableRights[] = 'releasemanager'; |
\ No newline at end of file |
Index: trunk/extensions/AssertEdit/AssertEdit_body.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | } |
15 | 15 | static function assert_bot() { |
16 | 16 | global $wgUser; |
17 | | - return $wgUser->isBot(); |
| 17 | + return $wgUser->isAllowed( 'bot' ); |
18 | 18 | } |
19 | 19 | static function assert_exists() { |
20 | 20 | global $wgTitle; |
Index: trunk/extensions/SecurePoll/includes/user/Auth.php |
— | — | @@ -210,7 +210,7 @@ |
211 | 211 | 'wiki' => wfWikiID(), |
212 | 212 | 'blocked' => $user->isBlocked(), |
213 | 213 | 'edit-count' => $user->getEditCount(), |
214 | | - 'bot' => $user->isBot(), |
| 214 | + 'bot' => $user->isAllowed( 'bot' ), |
215 | 215 | 'language' => $user->getOption( 'language' ), |
216 | 216 | 'groups' => $user->getGroups(), |
217 | 217 | 'lists' => $this->getLists( $user ) |