Index: trunk/extensions/LiquidThreads/pages/NewUserMessagesView.php |
— | — | @@ -2,7 +2,6 @@ |
3 | 3 | if ( !defined( 'MEDIAWIKI' ) ) die; |
4 | 4 | |
5 | 5 | class NewUserMessagesView extends LqtView { |
6 | | - |
7 | 6 | protected $highlightedThreads; |
8 | 7 | protected $messagesInfo; |
9 | 8 | |
— | — | @@ -254,9 +253,11 @@ |
255 | 254 | } |
256 | 255 | |
257 | 256 | function getQueryInfo() { |
| 257 | + $dbr = wfGetDB( DB_SLAVE ); |
| 258 | + |
258 | 259 | $queryInfo = array( |
259 | 260 | 'tables' => array( 'thread', 'user_message_state' ), |
260 | | - 'fields' => array( 'thread.*', 'ums_conversation' ), |
| 261 | + 'fields' => array( $dbr->tableName( 'thread' ) . '.*', 'ums_conversation' ), |
261 | 262 | 'conds' => array( |
262 | 263 | 'ums_user' => $this->user->getId(), |
263 | 264 | 'thread_type != ' . $this->mDb->addQuotes( Threads::TYPE_DELETED ), |