37 $params = parent::getMessageParameters();
38 $subtype = $this->entry->getSubtype();
39 if ( $subtype ===
'create2' || $subtype ===
'byemail' ) {
41 $target = User::newFromId(
$params[3] );
43 $target = User::newFromName( $this->entry->getTarget()->getText(),
false );
46 $params[3] = $target->getName();
53 $timestamp =
wfTimestamp( TS_MW, $this->entry->getTimestamp() );
54 if ( $timestamp <
'20080129000000' ) {
55 # Suppress $comment from old entries (before 2008-01-29),
56 # not needed and can contain incorrect links
60 return parent::getComment();
64 $subtype = $this->entry->getSubtype();
65 if ( $subtype ===
'create2' || $subtype ===
'byemail' ) {
67 return [ Title::makeTitle(
NS_USER_TALK, $this->entry->getTarget()->getText() ) ];
wfTimestamp( $outputtype=TS_UNIX, $ts=0)
Get a timestamp string in one of various formats.
array $params
The job parameters.