[Isocial-svn] SF.net SVN: isocial: [52] app
Status: Pre-Alpha
Brought to you by:
aguidrevitch
From: <di...@us...> - 2008-03-09 14:40:07
|
Revision: 52 http://isocial.svn.sourceforge.net/isocial/?rev=52&view=rev Author: dim0s77 Date: 2008-03-09 07:40:12 -0700 (Sun, 09 Mar 2008) Log Message: ----------- minor fix Modified Paths: -------------- app/controllers/message_controller.php app/views/message/_rows.tpl Modified: app/controllers/message_controller.php =================================================================== --- app/controllers/message_controller.php 2008-03-09 14:16:35 UTC (rev 51) +++ app/controllers/message_controller.php 2008-03-09 14:40:12 UTC (rev 52) @@ -130,11 +130,11 @@ function _mark_messages ($is_read) { if (!empty($this->params['check_messages'])) { $messages = $this->Message->find('all', - array('conditions' => array("id IN (" . $this->Message->_make_in_statement_from_array('id', $this->params['check_messages']) . ")", ))); + array('conditions' => array("id IN (" . $this->Message->_make_in_statement_from_array('id', $this->params['check_messages']) . ")"))); if ($messages) { foreach ($messages as $message_loop_key => $message) { - if ($message->sender_id = $this->current_user->getId() || - $message->recipient_id = $this->current_user->getId()) { + if ($message->sender_id == $this->current_user->getId() || + $message->recipient_id == $this->current_user->getId()) { $message->is_read = $is_read; $message->save(); } @@ -152,15 +152,15 @@ array('conditions' => array("id IN (" . $this->Message->_make_in_statement_from_array('id', $this->params['check_messages']) . ")", ))); if ($threads) { foreach ($threads as $thread_loop_key => $thread) { - if ($thread->sender_id = $this->current_user->getId() || - $thread->recipient_id = $this->current_user->getId()) { + if ($thread->sender_id == $this->current_user->getId() || + $thread->recipient_id == $this->current_user->getId()) { $this->Message->destroyAll("thread_id = $thread->thread_id"); } } } } return $this->render(array('partial' => 'rows', - 'locals' => array('messages' => $this->_getInboxMessages(), + 'locals' => array('messages' => $this->_getBoxMessages('inbox_message'), 'target' => 'sender'))); } } Modified: app/views/message/_rows.tpl =================================================================== --- app/views/message/_rows.tpl 2008-03-09 14:16:35 UTC (rev 51) +++ app/views/message/_rows.tpl 2008-03-09 14:40:12 UTC (rev 52) @@ -20,7 +20,7 @@ <td class="checkbox"><input onclick="oncheck(this, {?message.is_read}{message.is_read}{else}0{end})" type="checkbox" class="check{?message.is_read}read{else}unread{end}" id="{message.id}" name="check_messages[]" value="{message.id}"></td> <td class="profile_photo"><a href=""><img src="/images/nophoto_men_sm.gif" alt="" class=""></a></td> <td class="info"> - <span class="name"><a href=""><? if ($target == 'recipient') { ?>_{To}: <? } ?>{sender.name?}</a></span> + <span class="name"><? if ($target == 'recipient') { ?>_{To}: <? } ?><a href="">{sender.name?}</a></span> <span class="datetime">{message.created_at?}</span> </td> <td class="msg"> This was sent by the SourceForge.net collaborative development platform, the world's largest Open Source development site. |