Index: trunk/extensions/FlaggedRevs/FlaggedRevs.hooks.php |
— | — | @@ -1215,9 +1215,11 @@ |
1216 | 1216 | |
1217 | 1217 | public static function addToContribsLine( $contribs, &$ret, $row ) { |
1218 | 1218 | global $wgFlaggedRevsNamespaces; |
1219 | | - if( isset($row->fp_stable) && $row->rev_id > $row->fp_stable ) { |
| 1219 | + if( !in_array($row->page_namespace,$wgFlaggedRevsNamespaces) ) { |
| 1220 | + // do nothing |
| 1221 | + } else if( isset($row->fp_stable) && $row->rev_id > $row->fp_stable ) { |
1220 | 1222 | $ret = '<span class="flaggedrevs-unreviewed">'.$ret.'</span>'; |
1221 | | - } else if( !isset($row->fp_stable) && in_array($row->page_namespace,$wgFlaggedRevsNamespaces) ) { |
| 1223 | + } else if( !isset($row->fp_stable) ) { |
1222 | 1224 | $ret = '<span class="flaggedrevs-unreviewed2">'.$ret.'</span>'; |
1223 | 1225 | } |
1224 | 1226 | return true; |