jenkins-bot has submitted this change and it was merged.
Change subject: Use the user from the context to format the date in
Block::getPermissionsError()
..
Use the user from the context to format the date in Block::getPermissionsError()
Language::timeanddate() uses $wgUser to get the time correction and the
format to use.
Change-Id: I7dee3ae523d99aec7b36a317612a61376cf26d21
---
M includes/Block.php
1 file changed, 1 insertion(+), 1 deletion(-)
Approvals:
Aaron Schulz: Looks good to me, approved
Siebrand: Looks good to me, but someone else must approve
jenkins-bot: Verified
diff --git a/includes/Block.php b/includes/Block.php
index 3896369..c393a79 100644
--- a/includes/Block.php
+++ b/includes/Block.php
@@ -1368,7 +1368,7 @@
$this-getId(),
$lang-formatExpiry( $this-mExpiry ),
(string)$intended,
- $lang-timeanddate( wfTimestamp( TS_MW,
$this-mTimestamp ), true ),
+ $lang-userTimeAndDate( $this-mTimestamp,
$context-getUser() ),
);
}
}
--
To view, visit https://gerrit.wikimedia.org/r/144755
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I7dee3ae523d99aec7b36a317612a61376cf26d21
Gerrit-PatchSet: 1
Gerrit-Project: mediawiki/core
Gerrit-Branch: master
Gerrit-Owner: IAlex coderev...@emsenhuber.ch
Gerrit-Reviewer: Aaron Schulz asch...@wikimedia.org
Gerrit-Reviewer: Bartosz DziewoĆski matma@gmail.com
Gerrit-Reviewer: Nikerabbit niklas.laxst...@gmail.com
Gerrit-Reviewer: Siebrand siebr...@kitano.nl
Gerrit-Reviewer: jenkins-bot
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits