Index: trunk/extensions/Wikidata/OmegaWiki/SpecialSuggest.php |
— | — | @@ -248,12 +248,8 @@ |
249 | 249 | // this first query returns the language_id |
250 | 250 | $sql = 'SELECT language_id' . |
251 | 251 | " FROM {$dc}_syntrans" . |
252 | | - " JOIN {$dc}_expression ON {$dc}_expression.expression_id = {$dc}_syntrans.expression_id" . |
253 | 252 | " WHERE {$dc}_syntrans.syntrans_sid = " . $syntransId . |
254 | 253 | " LIMIT 1 " ; |
255 | | - // not needed: syntransId is unique |
256 | | - // ' AND ' . getLatestTransactionRestriction( "{$dc}_syntrans" ) . |
257 | | - // ' AND ' . getLatestTransactionRestriction( "{$dc}_expression" ); |
258 | 254 | $lang_res = $dbr->query( $sql ); |
259 | 255 | $language_id = $dbr->fetchObject( $lang_res )->language_id; |
260 | 256 | |