Index: trunk/extensions/Makebot/Makebot.php |
— | — | @@ -7,14 +7,14 @@ |
8 | 8 | * @addtogroup Extensions |
9 | 9 | * @author Rob Church <robchur@gmail.com> |
10 | 10 | * @copyright © 2006 Rob Church |
11 | | - * @licence GNU General Public Licence 2.0 or later |
| 11 | + * @license GNU General Public Licence 2.0 or later |
12 | 12 | */ |
13 | 13 | |
14 | 14 | if( defined( 'MEDIAWIKI' ) ) { |
15 | 15 | |
16 | 16 | define( 'MW_MAKEBOT_GRANT', 1 ); |
17 | 17 | define( 'MW_MAKEBOT_REVOKE', 2 ); |
18 | | - |
| 18 | + |
19 | 19 | $wgExtensionFunctions[] = 'efMakeBot'; |
20 | 20 | $wgAvailableRights[] = 'makebot'; |
21 | 21 | $wgExtensionCredits['specialpage'][] = array( |
— | — | @@ -23,7 +23,9 @@ |
24 | 24 | 'url' => 'http://www.mediawiki.org/wiki/Extension:MakeBot', |
25 | 25 | 'description' => 'Special page allows local bureaucrats to grant and revoke bot permissions', |
26 | 26 | 'descriptionmsg' => 'makebot-desc', |
| 27 | + 'version' => preg_replace('/^.* (\d\d\d\d-\d\d-\d\d) .*$/', '\1', '$LastChangedDate$'), #just the date of the last change |
27 | 28 | ); |
| 29 | + |
28 | 30 | /** |
29 | 31 | * Load internationalization file |
30 | 32 | */ |
— | — | @@ -33,18 +35,19 @@ |
34 | 36 | * Determines who can use the extension; as a default, bureaucrats are permitted |
35 | 37 | */ |
36 | 38 | $wgGroupPermissions['bureaucrat']['makebot'] = true; |
37 | | - |
| 39 | + |
38 | 40 | /** |
39 | 41 | * Toggles whether or not a bot flag can be given to a user who is also a sysop or bureaucrat |
40 | 42 | */ |
41 | 43 | $wgMakeBotPrivileged = false; |
42 | | - |
| 44 | + |
43 | 45 | /** |
44 | 46 | * Register the special page |
45 | 47 | */ |
46 | 48 | $wgAutoloadClasses['Makebot'] = dirname( __FILE__ ) . '/Makebot.class.php'; |
47 | 49 | $wgSpecialPages['Makebot'] = 'Makebot'; |
48 | | - |
| 50 | + $wgSpecialPageGroups['Makebot'] = 'permissions'; |
| 51 | + |
49 | 52 | /** |
50 | 53 | * Populate the message cache and set up the auditing |
51 | 54 | */ |
— | — | @@ -61,5 +64,3 @@ |
62 | 65 | echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" ); |
63 | 66 | exit( 1 ); |
64 | 67 | } |
65 | | - |
66 | | - |
Property changes on: trunk/extensions/Makebot/Makebot.php |
___________________________________________________________________ |
Added: svn:keywords |
67 | 68 | + LastChangedDate LastChangedRevision Id |