Index: trunk/phase3/includes/SpecialContributions.php |
— | — | @@ -158,13 +158,13 @@ |
159 | 159 | |
160 | 160 | $nscond = $this->getNamespaceCond(); |
161 | 161 | $use_index = $this->dbr->useIndexClause( $index ); |
162 | | - $sql = "SELECT |
163 | | - page_namespace,page_title,page_is_new,page_latest, |
164 | | - rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_minor_edit,rev_user,rev_user_text, |
165 | | - rev_deleted |
166 | | - FROM $page,$revision $use_index |
167 | | - WHERE page_id=rev_page AND $userCond $nscond $offsetQuery |
168 | | - ORDER BY rev_timestamp DESC"; |
| 162 | + $sql = 'SELECT ' . |
| 163 | + 'page_namespace,page_title,page_is_new,page_latest,'. |
| 164 | + 'rev_id,rev_page,rev_text_id,rev_timestamp,rev_comment,rev_minor_edit,rev_user,rev_user_text,'. |
| 165 | + 'rev_deleted ' . |
| 166 | + "FROM $page,$revision $use_index " . |
| 167 | + "WHERE page_id=rev_page AND $userCond $nscond $offsetQuery " . |
| 168 | + 'ORDER BY rev_timestamp DESC'; |
169 | 169 | $sql = $this->dbr->limitResult( $sql, $this->limit, 0 ); |
170 | 170 | return $sql; |
171 | 171 | } |