Index: trunk/phase3/includes/LogEventsList.php |
— | — | @@ -494,10 +494,10 @@ |
495 | 495 | global $wgAllowLogDeletion; |
496 | 496 | $log_id = $wgAllowLogDeletion ? 'log_id' : '0 AS log_id'; |
497 | 497 | # Don't use the wrong logging index |
498 | | - if( $this->user ) { |
| 498 | + if( $this->title || $this->pattern ) { |
| 499 | + $index = array( 'USE INDEX' => array( 'logging' => 'page_time' ) ); |
| 500 | + } else if( $this->user ) { |
499 | 501 | $index = array( 'USE INDEX' => array( 'logging' => 'user_time' ) ); |
500 | | - } else if( $this->title || $this->pattern ) { |
501 | | - $index = array( 'USE INDEX' => array( 'logging' => 'page_time' ) ); |
502 | 502 | } else if( $this->type ) { |
503 | 503 | $index = array( 'USE INDEX' => array( 'logging' => 'type_time' ) ); |
504 | 504 | } else { |