Harej has uploaded a new change for review.

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

Change subject: Commenting out "remove" link in CollaborationHubContent pending 
proper implementation.
......................................................................

Commenting out "remove" link in CollaborationHubContent pending proper 
implementation.

Change-Id: I2d700d1a423892a9643cbc909767e8d610cf7979
---
M includes/content/CollaborationHubContent.php
1 file changed, 10 insertions(+), 8 deletions(-)


  git pull 
ssh://gerrit.wikimedia.org:29418/mediawiki/extensions/CollaborationKit 
refs/changes/73/321973/1

diff --git a/includes/content/CollaborationHubContent.php 
b/includes/content/CollaborationHubContent.php
index a8408a0..15b1f00 100644
--- a/includes/content/CollaborationHubContent.php
+++ b/includes/content/CollaborationHubContent.php
@@ -612,14 +612,16 @@
                        }
 
                }
-               if ( $title->userCan( 'edit' ) ) {
-                       $sectionLinks['removeLink'] = $linkRenderer->makeLink(
-                               $title,
-                               wfMessage( 
'collaborationkit-hub-subpage-remove' )->inContentLanguage()->text(),
-                               [],
-                               [ 'action' => 'edit' ]
-                       );
-               }
+               // Commenting out pending proper implementation.
+               //
+               // if ( $title->userCan( 'edit' ) ) {
+               //      $sectionLinks['removeLink'] = $linkRenderer->makeLink(
+               //              $title,
+               //              wfMessage( 
'collaborationkit-hub-subpage-remove' )->inContentLanguage()->text(),
+               //              [],
+               //              [ 'action' => 'edit' ]
+               //      );
+               //}
                foreach ( $sectionLinks as $sectionLink ) {
                        $sectionLinksText .= $this->makeEditSectionLink( 
$sectionLink );
                }

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2d700d1a423892a9643cbc909767e8d610cf7979
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/extensions/CollaborationKit
Gerrit-Branch: master
Gerrit-Owner: Harej <jamesmh...@gmail.com>

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

Reply via email to