From a220d8b830944a041fcce9cfd409d9320365eb98 Mon Sep 17 00:00:00 2001 From: Kunal Mehta Date: Wed, 8 Jul 2015 14:57:20 -0700 Subject: [PATCH] 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 --- includes/changes/EnhancedChangesList.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) 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; -- 2.20.1