AYUSH GARG has uploaded a new change for review.

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

Change subject: protection length should be included in action=info
......................................................................

protection length should be included in action=info

Bug: T94129
Change-Id: I2df726e04c0555eb550036c31e538ec2594b517c
---
M includes/actions/InfoAction.php
1 file changed, 2 insertions(+), 0 deletions(-)


  git pull ssh://gerrit.wikimedia.org:29418/mediawiki/core 
refs/changes/28/200828/1

diff --git a/includes/actions/InfoAction.php b/includes/actions/InfoAction.php
index 338d939..c8ae414 100644
--- a/includes/actions/InfoAction.php
+++ b/includes/actions/InfoAction.php
@@ -434,6 +434,8 @@
                                        $message = $message->escaped();
                                }
                        }
+                       $expiry = $this->msg( 'parentheses', 
$title->getRestrictionExpiry( $restrictionType ) )->plain();
+                       $message = $message . " " . $expiry;
 
                        // Messages: restriction-edit, restriction-move, 
restriction-create,
                        // restriction-upload

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

Gerrit-MessageType: newchange
Gerrit-Change-Id: I2df726e04c0555eb550036c31e538ec2594b517c
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: AYUSH GARG <ayush.c...@iitp.ac.in>

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

Reply via email to