Index: trunk/phase3/includes/QueryPage.php |
— | — | @@ -342,6 +342,7 @@ |
343 | 343 | */ |
344 | 344 | function reallyDoQuery( $limit, $offset = false ) { |
345 | 345 | $fname = get_class( $this ) . "::reallyDoQuery"; |
| 346 | + $dbr = wfGetDB( DB_SLAVE ); |
346 | 347 | $query = $this->getQueryInfo(); |
347 | 348 | $order = $this->getOrderFields(); |
348 | 349 | if ( $this->sortDescending() ) { |
— | — | @@ -365,7 +366,6 @@ |
366 | 367 | $options['OFFSET'] = intval( $offset ); |
367 | 368 | } |
368 | 369 | |
369 | | - $dbr = wfGetDB( DB_SLAVE ); |
370 | 370 | $res = $dbr->select( $tables, $fields, $conds, $fname, |
371 | 371 | $options, $join_conds |
372 | 372 | ); |