mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/Echo
synced 2024-11-13 17:57:21 +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();
|
$vals = array();
|
||||||
if ( $type === 'all' ) {
|
if ( $type === 'all' ) {
|
||||||
foreach ( self::$allowedTypes as $allowed ) {
|
foreach ( self::$allowedTypes as $allowed ) {
|
||||||
$vals[] = $this->getTime( $allowed );
|
$vals[] = $this->getTime( $allowed, $flags, $format );
|
||||||
}
|
}
|
||||||
|
|
||||||
return max( $vals );
|
return max( $vals );
|
||||||
|
@ -63,7 +63,6 @@ class EchoSeenTime {
|
||||||
$data = $this->user->getOption( 'echo-seen-time', false );
|
$data = $this->user->getOption( 'echo-seen-time', false );
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if ( $data !== false ) {
|
if ( $data !== false ) {
|
||||||
$formattedData = wfTimestamp( $format, $data );
|
$formattedData = wfTimestamp( $format, $data );
|
||||||
} else {
|
} else {
|
||||||
|
|
Loading…
Reference in a new issue