dépôts
/
lhc
/
web
/
wiklou.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
b423e29
)
Use the user from the context to format the date in Block::getPermissionsError()
author
Alexandre Emsenhuber
<mediawiki@emsenhuber.ch>
Tue, 8 Jul 2014 20:13:01 +0000
(22:13 +0200)
committer
Alexandre Emsenhuber
<mediawiki@emsenhuber.ch>
Tue, 8 Jul 2014 20:13:01 +0000
(22:13 +0200)
Language::timeanddate() uses $wgUser to get the time correction and the
format to use.
Change-Id: I7dee3ae523d99aec7b36a317612a61376cf26d21
includes/Block.php
patch
|
blob
|
history
diff --git
a/includes/Block.php
b/includes/Block.php
index
3896369
..
c393a79
100644
(file)
--- a/
includes/Block.php
+++ b/
includes/Block.php
@@
-1368,7
+1368,7
@@
class Block {
$this->getId(),
$lang->formatExpiry( $this->mExpiry ),
(string)$intended,
- $lang->
timeanddate( wfTimestamp( TS_MW, $this->mTimestamp ), true
),
+ $lang->
userTimeAndDate( $this->mTimestamp, $context->getUser()
),
);
}
}