プロジェクト

全般

プロフィール

Bug(バグ) #696 » 696.diff

Shinichi Urabe, 2010-02-23 20:04

差分を表示:

lib/model/doctrine/PluginDeletedMessageTable.class.php (作業コピー)
*/
public function restoreMessage($message_id)
{
$deleted_message = $this->find($message_id);
$deleted_message = $this->findOneByIdAndMemberId($message_id, sfContext::getInstance()->getUser()->getMemberId());
if (!$deleted_message) {
return false;
}
lib/action/opMessagePluginMessageActions.class.php (作業コピー)
{
$request->checkCSRFProtection();
Doctrine::getTable('DeletedMessage')->restoreMessage($request->getParameter('id'));
$this->forward404Unless(Doctrine::getTable('DeletedMessage')->restoreMessage($request->getParameter('id')));
$this->redirect('@dustList');
}
(1-1/2)