Index: trunk/extensions/CentralAuth/CentralAuthPlugin.php |
— | — | @@ -250,27 +250,4 @@ |
251 | 251 | return CentralAuthUser::getInstance( $user ); |
252 | 252 | } |
253 | 253 | |
254 | | - /** |
255 | | - * @param $template UserloginTemplate |
256 | | - * @param $type |
257 | | - * @return mixed |
258 | | - */ |
259 | | - public function modifyUITemplate( &$template, &$type ) { |
260 | | - global $wgCentralAuthCookies; |
261 | | - |
262 | | - $template->set( 'usedomain', false ); |
263 | | - |
264 | | - if ( !$wgCentralAuthCookies ) { |
265 | | - return; |
266 | | - } |
267 | | - |
268 | | - $label = Xml::checkLabel( wfMsg( 'centralauth-login-global' ), 'wpCentralLogin', 'wpCentralLogin', true, array( 'tabindex' => '4' ) ); |
269 | | - $field = <<<HTML |
270 | | - <tr id="mw-centralauth-login"> |
271 | | - <td></td> |
272 | | - <td class="mw-input">$label</td> |
273 | | - </tr> |
274 | | -HTML; |
275 | | - $template->set( 'extrafields', $field ); |
276 | | - } |
277 | 254 | } |
Index: trunk/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -145,7 +145,7 @@ |
146 | 146 | * @return bool |
147 | 147 | */ |
148 | 148 | static function onUserLoginComplete( &$user, &$inject_html ) { |
149 | | - global $wgCentralAuthCookies, $wgRequest; |
| 149 | + global $wgCentralAuthCookies; |
150 | 150 | if ( !$wgCentralAuthCookies ) { |
151 | 151 | // Use local sessions only. |
152 | 152 | return true; |
— | — | @@ -164,14 +164,6 @@ |
165 | 165 | return true; |
166 | 166 | } |
167 | 167 | |
168 | | - if ( !$wgRequest->getCheck( 'wpCentralLogin' ) && !$wgRequest->getVal( 'wpCreateaccount' ) ) { |
169 | | - // The user requested to log in just on this wiki |
170 | | - // Or they just created an account |
171 | | - // Thankfully, we don't have the awful "Also log me in to other wikis of the Wikimedia Foundation" |
172 | | - // on the registration form too... Though, that would've caused this to not happen |
173 | | - return true; |
174 | | - } |
175 | | - |
176 | 168 | $inject_html .= '<div class="centralauth-login-box"><p>' . |
177 | 169 | wfMsgExt( 'centralauth-login-progress', array( 'parsemag' ), $user->getName() ) . "</p>\n<p>"; |
178 | 170 | foreach ( $wgCentralAuthAutoLoginWikis as $alt => $wiki ) { |
Index: trunk/extensions/CentralAuth/CentralAuth.i18n.php |
— | — | @@ -35,7 +35,6 @@ |
36 | 36 | 'centralauth-merge-step2-detail' => "Some of the accounts could not be automatically matched to the designated home wiki. |
37 | 37 | If these accounts belong to you, you can confirm that they are yours by providing the password for them.", |
38 | 38 | 'centralauth-merge-step2-submit' => 'Confirm login information', |
39 | | - 'centralauth-login-global' => 'Also log me in to other wikis of {{int:Centralauth-groupname}}', |
40 | 39 | |
41 | 40 | // Dry run messages |
42 | 41 | 'centralauth-merge-dryrun-complete' => 'All existing accounts can be automatically unified! |