From: aude Date: Wed, 28 Nov 2012 20:18:39 +0000 (+0000) Subject: add function in ChangesList to getTimestamp without inserting it X-Git-Tag: 1.31.0-rc.0~21243 X-Git-Url: http://git.cyclocoop.org/%40spipnet%40?a=commitdiff_plain;h=19d81b4e5d45211f6035b25618c0b74b1e5db424;p=lhc%2Fweb%2Fwiklou.git add function in ChangesList to getTimestamp without inserting it Change-Id: Iae28a6a36f3ab1de3c74cd9eba88793c85faa322 --- diff --git a/includes/ChangesList.php b/includes/ChangesList.php index f8dbf3b02a..0bd16f7dc0 100644 --- a/includes/ChangesList.php +++ b/includes/ChangesList.php @@ -383,13 +383,20 @@ class ChangesList extends ContextSource { $s .= " $articlelink"; } + /** + * @param $rc RecentChange + */ + public function getTimestamp( $rc ) { + return $this->message['semicolon-separator'] . '' . + $this->getLanguage()->userTime( $rc->mAttribs['rc_timestamp'], $this->getUser() ) . ' . . '; + } + /** * @param $s * @param $rc RecentChange */ public function insertTimestamp( &$s, $rc ) { - $s .= $this->message['semicolon-separator'] . '' . - $this->getLanguage()->userTime( $rc->mAttribs['rc_timestamp'], $this->getUser() ) . ' . . '; + $s .= $this->getTimestamp( $rc ); } /**