Alex Monk has uploaded a new change for review.

  https://gerrit.wikimedia.org/r/117243

Change subject: Remove link to OS'd edits from Special:Contributions
......................................................................

Remove link to OS'd edits from Special:Contributions

Core has one for suppression, and there is a script to convert them now.

Bug: 59120
Change-Id: I651143b3456379f92e0f5f4e786652ab6922ca0f
---
M HideRevision.hooks.php
M HideRevision.i18n.php
M HideRevision.php
3 files changed, 1 insertion(+), 24 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/Oversight 
refs/changes/43/117243/1

diff --git a/HideRevision.hooks.php b/HideRevision.hooks.php
index 7b88a63..902d237 100644
--- a/HideRevision.hooks.php
+++ b/HideRevision.hooks.php
@@ -43,26 +43,6 @@
        }
 
        /**
-        * @param $id
-        * @param $nt Title
-        * @param $tools
-        * @return bool
-        */
-       public static function onContributionsToolLinks( $id, $nt, &$tools ) {
-               global $wgUser;
-               if( $wgUser->isAllowed( 'oversight' ) ) {
-                       $title = SpecialPage::getTitleFor( 'Oversight' );
-                       $tools[] = Linker::link(
-                               $title,
-                               wfMessage( 'hiderevision-link' )->escaped(),
-                               array(),
-                               array( 'author' => $nt->getPartialUrl() )
-                       );
-               }
-               return true;
-       }
-
-       /**
         * If the user is allowed, installs a tab hook on the skin
         * which links to a handy permanent removal thingy.
         * @param $id
diff --git a/HideRevision.i18n.php b/HideRevision.i18n.php
index 894abfd..08477bb 100644
--- a/HideRevision.i18n.php
+++ b/HideRevision.i18n.php
@@ -37,8 +37,6 @@
 
        // Tab displayed to allowed users on old revision display
        'hiderevision-tab' => 'Hide revision',
-       // Displayed on Users contributions
-       'hiderevision-link' => 'hidden user contributions',
 
        // Status & errors on action
        'hiderevision-norevisions'    => 'No revisions specified to delete.',
diff --git a/HideRevision.php b/HideRevision.php
index d8e0c2e..52a267c 100644
--- a/HideRevision.php
+++ b/HideRevision.php
@@ -64,5 +64,4 @@
 $wgHooks['ArticleViewHeader'][] = 'HideRevisionHooks::onArticleViewHeader';
 $wgHooks['DiffViewHeader'][] = 'HideRevisionHooks::onDiffViewHeader';
 $wgHooks['UndeleteShowRevision'][] = 
'HideRevisionHooks::onUndeleteShowRevision';
-$wgHooks['ContributionsToolLinks'][] = 
'HideRevisionHooks::onContributionsToolLinks';
-$wgHooks['LoadExtensionSchemaUpdates'][] = 
'HideRevisionHooks::onLoadExtensionSchemaUpdates';
\ No newline at end of file
+$wgHooks['LoadExtensionSchemaUpdates'][] = 
'HideRevisionHooks::onLoadExtensionSchemaUpdates';

-- 
To view, visit https://gerrit.wikimedia.org/r/117243
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings

Gerrit-MessageType: newchange
Gerrit-Change-Id: I651143b3456379f92e0f5f4e786652ab6922ca0f
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/Oversight
Gerrit-Branch: master
Gerrit-Owner: Alex Monk <kren...@gmail.com>

_______________________________________________
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to