r99348 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r99347‎ | r99348 | r99349 >
Date:12:11, 9 October 2011
Author:ialex
Status:ok
Tags:
Comment:
And while I'm at it: removed obsolete code and bump version number
Modified paths:
  • /trunk/extensions/EditUser/EditUser.php (modified) (history)

Diff [purge]

Index: trunk/extensions/EditUser/EditUser.php
@@ -13,7 +13,7 @@
1414 $wgExtensionCredits['specialpage'][] = array(
1515 'path' => __FILE__,
1616 'name' => 'EditUser',
17 - 'version' => '1.6.1',
 17+ 'version' => '1.7.0',
1818 'author' => 'Ryan Schmidt',
1919 'descriptionmsg' => 'edituser-desc',
2020 'url' => 'http://www.mediawiki.org/wiki/Extension:EditUser',
@@ -30,25 +30,3 @@
3131 #Default group permissions
3232 $wgGroupPermissions['bureaucrat']['edituser'] = true;
3333 $wgGroupPermissions['sysop']['edituser-exempt'] = true;
34 -
35 -#Debug mode, enable only if you are testing this extension or if you are having an issue
36 -$wgEditUserDebug = false;
37 -$wgEditUserDebugLog = $dir . 'debug.log';
38 -
39 -$wgHooks['SavePreferences'][] = 'efEditUserDebug';
40 -
41 -function efEditUserDebug( $eu, $user, &$msg, $old = array() ) {
42 - global $wgEditUserDebug, $wgEditUserDebugLog;
43 - if( !$wgEditUserDebug || !$eu instanceOf EditUser )
44 - return true;
45 - // $old was added in 1.13, so let's have this work for earlier versions :)
46 - if( $old === array() ) {
47 - wfErrorLog( "\n===== BEGIN EDITUSER REQUEST =====\nTime: "
48 - . wfTime() . "\nNew user state: ".var_export( $user->mOptions, true ), $wgEditUserDebugLog );
49 - } else {
50 - wfErrorLog( "\n===== BEGIN EDITUSER REQUEST =====\nTime: "
51 - . wfTime() . "\nCurrent user state: " . var_export( $old, true )
52 - . "\nNew user state: ".var_export( $user->mOptions, true ), $wgEditUserDebugLog );
53 - }
54 - return true;
55 -}

Status & tagging log