Index: trunk/extensions/EditUser/EditUser.php |
— | — | @@ -13,7 +13,7 @@ |
14 | 14 | $wgExtensionCredits['specialpage'][] = array( |
15 | 15 | 'path' => __FILE__, |
16 | 16 | 'name' => 'EditUser', |
17 | | - 'version' => '1.6.1', |
| 17 | + 'version' => '1.7.0', |
18 | 18 | 'author' => 'Ryan Schmidt', |
19 | 19 | 'descriptionmsg' => 'edituser-desc', |
20 | 20 | 'url' => 'http://www.mediawiki.org/wiki/Extension:EditUser', |
— | — | @@ -30,25 +30,3 @@ |
31 | 31 | #Default group permissions |
32 | 32 | $wgGroupPermissions['bureaucrat']['edituser'] = true; |
33 | 33 | $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 | | -} |