Index: trunk/extensions/CentralAuth/CentralAuth.php |
— | — | @@ -188,9 +188,6 @@ |
189 | 189 | $wgHooks['getUserPermissionsErrorsExpensive'][] = 'CentralAuthHooks::onGetUserPermissionsErrorsExpensive'; |
190 | 190 | $wgHooks['MakeGlobalVariablesScript'][] = 'CentralAuthHooks::onMakeGlobalVariablesScript'; |
191 | 191 | |
192 | | -// For Special:Contributions |
193 | | -$wgHooks['ContributionsToolLinks'][] = 'CentralAuthHooks::onContributionsToolLinks'; |
194 | | - |
195 | 192 | // For interaction with the Special:Renameuser extension |
196 | 193 | $wgHooks['RenameUserWarning'][] = 'CentralAuthHooks::onRenameUserWarning'; |
197 | 194 | $wgHooks['RenameUserPreRename'][] = 'CentralAuthHooks::onRenameUserPreRename'; |
Index: trunk/extensions/CentralAuth/CentralAuthHooks.php |
— | — | @@ -612,23 +612,4 @@ |
613 | 613 | $params['url'] = $wiki->getUrl( 'User:' . str_replace( ' ', '_', $user->getName() ) ); |
614 | 614 | return true; |
615 | 615 | } |
616 | | - |
617 | | - public static function onContributionsToolLinks( $id, $user, &$tools ) { |
618 | | - global $wgUser; |
619 | | - |
620 | | - $globalUser = CentralAuthUser::getInstance( $user ); |
621 | | - if ( $globalUser->exists() ) { |
622 | | - if ( $wgUser->isAllowed( 'centralauth-merge' ) ) { // Paranoia. Currently this right is assigned to '*' |
623 | | - $sk = $wgUser->getSkin(); |
624 | | - $tools[] = $sk->linkKnown( |
625 | | - SpecialPage::getTitleFor( 'CentralAuth', $user->getText() ), |
626 | | - wfMsg( 'centralauth-link-on-contribs' ), |
627 | | - array( 'title' => wfMsgExt( 'centralauth-link-on-contribs-text', 'parseinline' ) ) |
628 | | - ); |
629 | | - } |
630 | | - } else { |
631 | | - $tools[] = wfMsg( 'centralauth-link-on-contribs-no' ); |
632 | | - } |
633 | | - return true; |
634 | | - } |
635 | 616 | } |
Index: trunk/extensions/CentralAuth/CentralAuth.i18n.php |
— | — | @@ -238,11 +238,6 @@ |
239 | 239 | Renaming it will cause the local user to be detached from the global one.", |
240 | 240 | 'centralauth-renameuser-reserved' => "User $2 is reserved for a global account.", |
241 | 241 | |
242 | | - // Interaction with Special:Contributions |
243 | | - 'centralauth-link-on-contribs' => 'global account status', |
244 | | - 'centralauth-link-on-contribs-text' => 'Status of the global account for this user', |
245 | | - 'centralauth-link-on-contribs-no' => 'no global account', |
246 | | - |
247 | 242 | // Other messages |
248 | 243 | 'centralauth-invalid-wiki' => 'No such wiki database: $1', |
249 | 244 | 'centralauth-account-exists' => 'Cannot create account: the requested username is already taken in the unified login system.', |