17use Wikimedia\Timestamp\TimestampFormat as TS;
31 parent::__construct(
$entry );
32 $this->namespaceInfo = $namespaceInfo;
37 $params = parent::getMessageParameters();
38 $subtype = $this->entry->getSubtype();
39 if ( $subtype ===
'create2' || $subtype ===
'byemail' ) {
40 if ( isset( $params[3] ) ) {
41 $target = User::newFromId( $params[3] );
43 $target = User::newFromName( $this->entry->getTarget()->getText(),
false );
46 $params[3] = $target->getName();
54 $timestamp =
wfTimestamp( TS::MW, $this->entry->getTimestamp() );
55 if ( $timestamp <
'20080129000000' ) {
56 # Suppress $comment from old entries (before 2008-01-29),
57 # not needed and can contain incorrect links
61 return parent::getComment();
66 $subtype = $this->entry->getSubtype();
67 if ( $subtype ===
'create2' || $subtype ===
'byemail' ) {
69 return [ $this->namespaceInfo->getTalkPage( $this->entry->getTarget() ) ];
77class_alias( NewUsersLogFormatter::class,
'NewUsersLogFormatter' );
wfTimestamp( $outputtype=TS::UNIX, $ts=0)
Get a timestamp string in one of various formats.