Index: trunk/extensions/FlaggedRevs/FlaggedRevision.php |
— | — | @@ -88,7 +88,8 @@ |
89 | 89 | 'rev_page = fr_page_id', |
90 | 90 | 'rev_deleted & '.Revision::DELETED_TEXT => 0 ), |
91 | 91 | __METHOD__, |
92 | | - $options ); |
| 92 | + $options |
| 93 | + ); |
93 | 94 | # Sorted from highest to lowest, so just take the first one if any |
94 | 95 | if( $row ) { |
95 | 96 | $frev = new FlaggedRevision( $row ); |
— | — | @@ -124,8 +125,9 @@ |
125 | 126 | $columns, |
126 | 127 | array( 'fp_page_id' => $pageId, |
127 | 128 | 'fr_page_id = fp_page_id', |
128 | | - 'fp_stable = fr_rev_id' ), |
129 | | - __METHOD__ ); |
| 129 | + 'fr_rev_id = fp_stable' ), |
| 130 | + __METHOD__ |
| 131 | + ); |
130 | 132 | if( !$row ) return null; |
131 | 133 | } else { |
132 | 134 | if( $flags & FR_FOR_UPDATE ) $options[] = 'FOR UPDATE'; |