r34243 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r34242‎ | r34243 | r34244 >
Date:14:11, 5 May 2008
Author:raymond
Status:old
Tags:
Comment:
* Add $wgSpecialPageGroups
* Add version for extension credits
* Kill whitespaces
Modified paths:
  • /trunk/extensions/Makebot/Makebot.php (modified) (history)

Diff [purge]

Index: trunk/extensions/Makebot/Makebot.php
@@ -7,14 +7,14 @@
88 * @addtogroup Extensions
99 * @author Rob Church <robchur@gmail.com>
1010 * @copyright © 2006 Rob Church
11 - * @licence GNU General Public Licence 2.0 or later
 11+ * @license GNU General Public Licence 2.0 or later
1212 */
1313
1414 if( defined( 'MEDIAWIKI' ) ) {
1515
1616 define( 'MW_MAKEBOT_GRANT', 1 );
1717 define( 'MW_MAKEBOT_REVOKE', 2 );
18 -
 18+
1919 $wgExtensionFunctions[] = 'efMakeBot';
2020 $wgAvailableRights[] = 'makebot';
2121 $wgExtensionCredits['specialpage'][] = array(
@@ -23,7 +23,9 @@
2424 'url' => 'http://www.mediawiki.org/wiki/Extension:MakeBot',
2525 'description' => 'Special page allows local bureaucrats to grant and revoke bot permissions',
2626 'descriptionmsg' => 'makebot-desc',
 27+ 'version' => preg_replace('/^.* (\d\d\d\d-\d\d-\d\d) .*$/', '\1', '$LastChangedDate$'), #just the date of the last change
2728 );
 29+
2830 /**
2931 * Load internationalization file
3032 */
@@ -33,18 +35,19 @@
3436 * Determines who can use the extension; as a default, bureaucrats are permitted
3537 */
3638 $wgGroupPermissions['bureaucrat']['makebot'] = true;
37 -
 39+
3840 /**
3941 * Toggles whether or not a bot flag can be given to a user who is also a sysop or bureaucrat
4042 */
4143 $wgMakeBotPrivileged = false;
42 -
 44+
4345 /**
4446 * Register the special page
4547 */
4648 $wgAutoloadClasses['Makebot'] = dirname( __FILE__ ) . '/Makebot.class.php';
4749 $wgSpecialPages['Makebot'] = 'Makebot';
48 -
 50+ $wgSpecialPageGroups['Makebot'] = 'permissions';
 51+
4952 /**
5053 * Populate the message cache and set up the auditing
5154 */
@@ -61,5 +64,3 @@
6265 echo( "This file is an extension to the MediaWiki software and cannot be used standalone.\n" );
6366 exit( 1 );
6467 }
65 -
66 -
Property changes on: trunk/extensions/Makebot/Makebot.php
___________________________________________________________________
Added: svn:keywords
6768 + LastChangedDate LastChangedRevision Id

Status & tagging log