From: Kunal Mehta Date: Wed, 8 Jul 2015 21:57:20 +0000 (-0700) Subject: Unbreak missing flags in enhanced RC X-Git-Tag: 1.31.0-rc.0~10846 X-Git-Url: http://git.cyclocoop.org/ecrire?a=commitdiff_plain;h=a220d8b830944a041fcce9cfd409d9320365eb98;p=lhc%2Fweb%2Fwiklou.git Unbreak missing flags in enhanced RC $this->recentChangesFlags() was being called on the data twice, so the second time it was processing the string, causing the flags go missing. Follows-up 94f153db6a0. Bug: T105237 Change-Id: I04465d0317eecc1c12e47bc9a74f11986eba99a4 --- diff --git a/includes/changes/EnhancedChangesList.php b/includes/changes/EnhancedChangesList.php index 9635c1791d..e5916bd7f2 100644 --- a/includes/changes/EnhancedChangesList.php +++ b/includes/changes/EnhancedChangesList.php @@ -544,12 +544,12 @@ class EnhancedChangesList extends ChangesList { ? 'mw-changeslist-line-watched' : 'mw-changeslist-line-not-watched'; # Flag and Timestamp - $data['recentChangesFlags'] = $this->recentChangesFlags( array( + $data['recentChangesFlags'] = array( 'newpage' => $type == RC_NEW, 'minor' => $rcObj->mAttribs['rc_minor'], 'unpatrolled' => $rcObj->unpatrolled, 'bot' => $rcObj->mAttribs['rc_bot'], - ) ); + ); // timestamp is not really a link here, but is called timestampLink // for consistency with EnhancedChangesListModifyLineData $data['timestampLink'] = $rcObj->timestamp;