Index: trunk/phase3/includes/api/ApiQueryLogEvents.php |
— | — | @@ -59,12 +59,14 @@ |
60 | 60 | $this->addWhere($hideLogs); |
61 | 61 | |
62 | 62 | // Order is significant here |
63 | | - $this->addTables(array('user', 'page', 'logging')); |
| 63 | + $this->addTables(array('logging', 'user', 'page')); |
| 64 | + $this->addOption('STRAIGHT_JOIN'); |
64 | 65 | $this->addJoinConds(array( |
| 66 | + 'user' => array('JOIN', |
| 67 | + 'user_id=log_user'), |
65 | 68 | 'page' => array('LEFT JOIN', |
66 | 69 | array( 'log_namespace=page_namespace', |
67 | 70 | 'log_title=page_title')))); |
68 | | - $this->addWhere('user_id=log_user'); |
69 | 71 | $index = 'times'; // default, may change |
70 | 72 | |
71 | 73 | $this->addFields(array ( |