ここの情報は古いです。ご理解頂いた上でお取り扱いください。

Changeset 11584


Ignore:
Timestamp:
May 5, 2009, 10:59:51 PM (13 years ago)
Author:
ShogoKawahara
Message:

fixed friend/link action to send friends link message (trunk)

Location:
OpenPNE3/trunk
Files:
3 edited
3 copied

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/mobile_frontend/i18n/messages.ja.xml

    r11293 r11584  
    264264      </trans-unit>
    265265      <trans-unit id="">
     266        <source>You have requested friend link.</source>
     267        <target>フレンド申請が完了しました。</target>
     268      </trans-unit>
     269      <trans-unit id="">
    266270        <source>This member is not your friend.</source>
    267271        <target>フレンドではありません。</target>
  • OpenPNE3/trunk/apps/pc_frontend/i18n/messages.ja.xml

    r11136 r11584  
    148148      </trans-unit>
    149149      <trans-unit id="">
     150        <source>You have requested friend link.</source>
     151        <target>フレンド申請が完了しました。</target>
     152      </trans-unit>
     153      <trans-unit id="">
    150154        <source>You don't have any friends.</source>
    151155        <target>フレンドがいません。</target>
  • OpenPNE3/trunk/lib/action/sfOpenPNEFriendAction.class.php

    r11479 r11584  
    7474    }
    7575
    76     $this->redirectToHomeIfIdIsNotValid();
     76    $this->form = new FriendLinkForm();
    7777
    78     $this->relation->setFriendPre();
     78    if ($request->isMethod(sfWebRequest::POST))
     79    {
     80      $this->form->bind($request->getParameter('friend_link'));
     81      if ($this->form->isValid())
     82      {
     83        $this->getUser()->setFlash('notice', 'You have requested friend link.');
     84        $this->redirectToHomeIfIdIsNotValid();
     85        $this->relation->setFriendPre();
     86        $this->dispatcher->notify(new sfEvent($this, 'op_action.post_execute_'.$this->moduleName.'_'.$this->actionName, array(
     87          'moduleName' => $this->moduleName,
     88          'actionName' => $this->actionName,
     89          'actionInstance' => $this,
     90          'result'     => sfView::SUCCESS,
     91        )));
     92        $this->redirect('member/profile?id='.$this->id);
     93      }
     94    }
    7995
    80     $this->redirect('member/profile?id='.$this->id);
     96    $this->member = MemberPeer::retrieveByPk($this->id);
     97    return sfView::INPUT;
    8198  }
    8299
Note: See TracChangeset for help on using the changeset viewer.