Index: trunk/extensions/ConfirmEdit/ConfirmEdit.php |
— | — | @@ -34,8 +34,6 @@ |
35 | 35 | exit; |
36 | 36 | } |
37 | 37 | |
38 | | -global $wgExtensionFunctions, $wgGroupPermissions; |
39 | | - |
40 | 38 | $wgExtensionFunctions[] = 'confirmEditSetup'; |
41 | 39 | $wgExtensionCredits['other'][] = array( |
42 | 40 | 'path' => __FILE__, |
— | — | @@ -71,7 +69,6 @@ |
72 | 70 | */ |
73 | 71 | $wgCaptchaWhitelistIP = false; |
74 | 72 | |
75 | | -global $wgCaptcha, $wgCaptchaClass, $wgCaptchaTriggers; |
76 | 73 | $wgCaptcha = null; |
77 | 74 | $wgCaptchaClass = 'SimpleCaptcha'; |
78 | 75 | |
— | — | @@ -121,7 +118,6 @@ |
122 | 119 | * 'CaptchaCacheStore' uses $wgMemc, which avoids the cookie dependency |
123 | 120 | * but may be fragile depending on cache configuration. |
124 | 121 | */ |
125 | | -global $wgCaptchaStorageClass; |
126 | 122 | $wgCaptchaStorageClass = 'CaptchaSessionStore'; |
127 | 123 | |
128 | 124 | /** |
— | — | @@ -130,7 +126,6 @@ |
131 | 127 | * |
132 | 128 | * Default is a half hour. |
133 | 129 | */ |
134 | | -global $wgCaptchaSessionExpiration; |
135 | 130 | $wgCaptchaSessionExpiration = 30 * 60; |
136 | 131 | |
137 | 132 | /** |
— | — | @@ -142,21 +137,18 @@ |
143 | 138 | * |
144 | 139 | * Default is five minutes. |
145 | 140 | */ |
146 | | -global $wgCaptchaBadLoginExpiration; |
147 | 141 | $wgCaptchaBadLoginExpiration = 5 * 60; |
148 | 142 | |
149 | 143 | /** |
150 | 144 | * Allow users who have confirmed their e-mail addresses to post |
151 | 145 | * URL links without being harassed by the captcha. |
152 | 146 | */ |
153 | | -global $ceAllowConfirmedEmail; |
154 | 147 | $ceAllowConfirmedEmail = false; |
155 | 148 | |
156 | 149 | /** |
157 | 150 | * Number of bad login attempts before triggering the captcha. 0 means the |
158 | 151 | * captcha is presented on the first login. |
159 | 152 | */ |
160 | | -global $wgCaptchaBadLoginAttempts; |
161 | 153 | $wgCaptchaBadLoginAttempts = 3; |
162 | 154 | |
163 | 155 | /** |