diff options
author | Pierre Schmitz <pierre@archlinux.de> | 2015-12-20 09:00:55 +0100 |
---|---|---|
committer | Pierre Schmitz <pierre@archlinux.de> | 2015-12-20 09:00:55 +0100 |
commit | a2190ac74dd4d7080b12bab90e552d7aa81209ef (patch) | |
tree | 8b31f38de9882d18df54cf8d9e0de74167a094eb /includes/changes/ChangesList.php | |
parent | 15e69f7b20b6596b9148030acce5b59993b95a45 (diff) | |
parent | 257401d8b2cf661adf36c84b0e3fd1cf85e33c22 (diff) |
Merge branch 'mw-1.26'
Diffstat (limited to 'includes/changes/ChangesList.php')
-rw-r--r-- | includes/changes/ChangesList.php | 39 |
1 files changed, 38 insertions, 1 deletions
diff --git a/includes/changes/ChangesList.php b/includes/changes/ChangesList.php index 932006d4..fdc9944f 100644 --- a/includes/changes/ChangesList.php +++ b/includes/changes/ChangesList.php @@ -204,7 +204,8 @@ class ChangesList extends ContextSource { $code = $lang->getCode(); static $fastCharDiff = array(); if ( !isset( $fastCharDiff[$code] ) ) { - $fastCharDiff[$code] = $config->get( 'MiserMode' ) || $context->msg( 'rc-change-size' )->plain() === '$1'; + $fastCharDiff[$code] = $config->get( 'MiserMode' ) + || $context->msg( 'rc-change-size' )->plain() === '$1'; } $formattedSize = $lang->formatNum( $szdiff ); @@ -371,6 +372,19 @@ class ChangesList extends ContextSource { } /** + * @param RecentChange $rc + * @param bool $unpatrolled + * @param bool $watched + * @return string + * @since 1.26 + */ + public function getArticleLink( RecentChange $rc, $unpatrolled, $watched ) { + $s = ''; + $this->insertArticleLink( $s, $rc, $unpatrolled, $watched ); + return $s; + } + + /** * Get the timestamp from $rc formatted with current user's settings * and a separator * @@ -543,6 +557,17 @@ class ChangesList extends ContextSource { } /** + * @param RecentChange $rc + * @return string + * @since 1.26 + */ + public function getRollback( RecentChange $rc ) { + $s = ''; + $this->insertRollback( $s, $rc ); + return $s; + } + + /** * @param string $s * @param RecentChange $rc * @param array $classes @@ -560,6 +585,18 @@ class ChangesList extends ContextSource { $s .= ' ' . $tagSummary; } + /** + * @param RecentChange $rc + * @param array $classes + * @return string + * @since 1.26 + */ + public function getTags( RecentChange $rc, array &$classes ) { + $s = ''; + $this->insertTags( $s, $rc, $classes ); + return $s; + } + public function insertExtra( &$s, &$rc, &$classes ) { // Empty, used for subclasses to add anything special. } |