mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-12 01:10:07 +00:00
Forward format to seenTime when getting 'all' types
Change-Id: Id79c4403ea879bb08b0ce94d24f7bdbb8ea83560
This commit is contained in:
parent
d2661fd5b3
commit
b623bdc6d3
|
@ -48,7 +48,7 @@ class EchoSeenTime {
|
|||
$vals = array();
|
||||
if ( $type === 'all' ) {
|
||||
foreach ( self::$allowedTypes as $allowed ) {
|
||||
$vals[] = $this->getTime( $allowed );
|
||||
$vals[] = $this->getTime( $allowed, $flags, $format );
|
||||
}
|
||||
|
||||
return max( $vals );
|
||||
|
@ -63,7 +63,6 @@ class EchoSeenTime {
|
|||
$data = $this->user->getOption( 'echo-seen-time', false );
|
||||
}
|
||||
}
|
||||
|
||||
if ( $data !== false ) {
|
||||
$formattedData = wfTimestamp( $format, $data );
|
||||
} else {
|
||||
|
|
Loading…
Reference in a new issue