Index: trunk/extensions/LiquidThreads/classes/NewMessagesController.php |
— | — | @@ -267,10 +267,12 @@ |
268 | 268 | if ( version_compare( $wgVersion, '1.16', '<' ) ) { |
269 | 269 | $oldPreferenceFormat = true; |
270 | 270 | } else { |
271 | | - $tables[] = 'user_properties as tc_prop'; |
| 271 | + $tableNameUserProperties = $dbr->tableName( 'user_properties' ); |
| 272 | + |
| 273 | + $tables[] = $tableNameUserProperties . ' as tc_prop'; |
272 | 274 | $fields[] = 'tc_prop.up_value as timecorrection'; |
273 | 275 | |
274 | | - $join_conds['user_properties as tc_prop'] = array( |
| 276 | + $join_conds[$tableNameUserProperties . ' as tc_prop'] = array( |
275 | 277 | 'left join', |
276 | 278 | array( |
277 | 279 | 'up_user=user_id', |
— | — | @@ -278,10 +280,10 @@ |
279 | 281 | ) |
280 | 282 | ); |
281 | 283 | |
282 | | - $tables[] = 'user_properties as l_prop'; |
| 284 | + $tables[] = $tableNameUserProperties . ' as l_prop'; |
283 | 285 | $fields[] = 'l_prop.up_value as language'; |
284 | 286 | |
285 | | - $join_conds['user_properties as l_prop'] = array( |
| 287 | + $join_conds[$tableNameUserProperties . ' as l_prop'] = array( |
286 | 288 | 'left join', |
287 | 289 | array( |
288 | 290 | 'up_user=user_id', |