Index: branches/liquidthreads/extensions/LqtModel.php |
— | — | @@ -1008,7 +1008,7 @@ |
1009 | 1009 | |
1010 | 1010 | if ( $timestamp === null ) $timestamp = "NULL"; |
1011 | 1011 | |
1012 | | - // use query() directly to pass is 'true' for don't-die on errors. |
| 1012 | + // use query() directly to pass in 'true' for don't-die-on-errors. |
1013 | 1013 | $dbr =& wfGetDB( DB_MASTER ); |
1014 | 1014 | $success = $dbr->query("insert into user_message_state values ($user_id, $thread_id, $timestamp)", |
1015 | 1015 | __METHOD__, true); |
— | — | @@ -1025,7 +1025,7 @@ |
1026 | 1026 | |
1027 | 1027 | $ts = Threads::where( array('ums_read_timestamp is null', |
1028 | 1028 | Threads::articleClause(new Article($user->getUserPage()))), |
1029 | | - array(), array(), 'left outer join user_message_state on ums_user is null or (ums_user = 2 and ums_thread = thread.thread_id)' ); |
| 1029 | + array(), array(), "left outer join user_message_state on ums_user is null or (ums_user = {$user->getID()} and ums_thread = thread.thread_id)" ); |
1030 | 1030 | return $ts; |
1031 | 1031 | } |
1032 | 1032 | |