r98119 MediaWiki - Code Review archive

Repository:MediaWiki
Revision:r98118‎ | r98119 | r98120 >
Date:09:14, 26 September 2011
Author:catrope
Status:ok
Tags:
Comment:
Followup r98116: don't set $filterState = 'filtered'; if no filters were applied
Modified paths:
  • /trunk/extensions/MoodBar/SpecialMoodBarFeedback.php (modified) (history)

Diff [purge]

Index: trunk/extensions/MoodBar/SpecialMoodBarFeedback.php
@@ -34,7 +34,9 @@
3535 $filters['username'] = $username;
3636 }
3737 $offset = $wgRequest->getVal( 'offset', $offset );
38 - $filterType = 'filtered';
 38+ if ( count( $filters ) ) {
 39+ $filterType = 'filtered';
 40+ }
3941 }
4042 // Do the query
4143 $backwards = $wgRequest->getVal( 'dir' ) === 'prev';

Past revisions this follows-up on

RevisionCommit summaryAuthorDate
r98116MoodBar: Implement AJAX filtering in Special:MoodBarFeedback...catrope08:29, 26 September 2011

Status & tagging log