Index: branches/robchurch/logs/includes/SpecialLog.php |
— | — | @@ -161,7 +161,8 @@ |
162 | 162 | */ |
163 | 163 | function getQuery() { |
164 | 164 | $logging = $this->db->tableName( "logging" ); |
165 | | - $sql = "SELECT /*! STRAIGHT_JOIN */ * FROM $logging "; |
| 165 | + # Note: Fake out log_id until it's live on Wikimedia |
| 166 | + $sql = "SELECT /*! STRAIGHT_JOIN */ *, 0 AS log_id FROM $logging "; |
166 | 167 | if( !empty( $this->joinClauses ) ) { |
167 | 168 | $sql .= implode( ' ', $this->joinClauses ); |
168 | 169 | } |