Forward format to seenTime when getting 'all' types

Change-Id: Id79c4403ea879bb08b0ce94d24f7bdbb8ea83560
This commit is contained in:
Moriel Schottlender 2016-07-28 15:09:16 -07:00
parent d2661fd5b3
commit b623bdc6d3

View file

@ -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 {