From: umherirrender Date: Fri, 11 May 2012 19:27:40 +0000 (+0200) Subject: Add user talk page in newusers log to LinkBatch X-Git-Tag: 1.31.0-rc.0~23639^2 X-Git-Url: http://git.cyclocoop.org//%27%40script%40/%27?a=commitdiff_plain;h=d6c651f608edde5f951ecdea7c56b59d46ef2903;p=lhc%2Fweb%2Fwiklou.git Add user talk page in newusers log to LinkBatch Using NewUsersLogFormatter::getPreloadTitles for that Change-Id: Ib3bede90e33c3d240aad5950247d52d732d8876b --- diff --git a/includes/logging/LogFormatter.php b/includes/logging/LogFormatter.php index 6d8ece1e01..1ba6a3b66e 100644 --- a/includes/logging/LogFormatter.php +++ b/includes/logging/LogFormatter.php @@ -727,4 +727,12 @@ class NewUsersLogFormatter extends LogFormatter { } return parent::getComment(); } + + public function getPreloadTitles() { + if ( $this->entry->getSubtype() === 'create2' ) { + //add the user talk to LinkBatch for the userLink + return array( Title::makeTitle( NS_USER_TALK, $this->entry->getTarget()->getText() ) ); + } + return array(); + } }