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

Changeset 12090


Ignore:
Timestamp:
Jul 2, 2009, 12:55:49 PM (10 years ago)
Author:
ShogoKawahara
Message:

#4057:fixed some components, because it output 500error when 'id' was added to GET parameter in the home

Location:
OpenPNE3/trunk/apps/pc_frontend/modules
Files:
5 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/modules/community/actions/components.class.php

    r11715 r12090  
    1313  public function executeJoinListBox($request)
    1414  {
    15     $memberId = $this->getUser()->getMemberId();
    16     if ($request->hasParameter('id'))
     15    if ($request->hasParameter('id') && $request->getParameter('module') == 'member' && $request->getParameter('action') == 'profile')
    1716    {
    18       $memberId = $request->getParameter('id');
     17      $this->member = Doctrine::getTable('Member')->find($request->getParameter('id'));
    1918    }
    20     $this->member = Doctrine::getTable('Member')->find($memberId);
     19    else
     20    {
     21      $this->member = $this->getUser()->getMember();
     22    }
    2123    $this->row = $this->gadget->getConfig('row');
    2224    $this->col = $this->gadget->getConfig('col');
  • OpenPNE3/trunk/apps/pc_frontend/modules/default/actions/components.class.php

    r12056 r12090  
    5757  public function executeMemberImageBox($request)
    5858  {
    59     $memberId = $this->getUser()->getMemberId();
    60     if ($request->hasParameter('id'))
     59    if ($request->hasParameter('id') && $request->getParameter('module') == 'member' && $request->getParameter('action') == 'profile')
    6160    {
    62       $memberId = $request->getParameter('id');
     61      $this->member = Doctrine::getTable('Member')->find($request->getParameter('id'));
    6362    }
    64     $this->member = Doctrine::getTable('Member')->find($memberId);
     63    else
     64    {
     65      $this->member = $this->getUser()->getMember();
     66    }
    6567  }
    6668
  • OpenPNE3/trunk/apps/pc_frontend/modules/default/templates/_memberImageBox.php

    r11715 r12090  
    11<?php
    22$options = array(
    3   'object'      => $member,
     3  'object'   => $member,
    44  'moreInfo' => array(
    55    link_to(__('Edit Photo'), 'member/configImage'),
  • OpenPNE3/trunk/apps/pc_frontend/modules/friend/actions/components.class.php

    r11715 r12090  
    1313  public function executeFriendListBox($request)
    1414  {
    15     $memberId = $this->getUser()->getMemberId();
    16     if ($request->hasParameter('id'))
     15    if ($request->hasParameter('id') && $request->getParameter('module') == 'member' && $request->getParameter('action') == 'profile')
    1716    {
    18       $memberId = $request->getParameter('id');
     17      $this->member = Doctrine::getTable('Member')->find($request->getParameter('id'));
    1918    }
    20     $this->member = Doctrine::getTable('Member')->find($memberId);
     19    else
     20    {
     21      $this->member = $this->getUser()->getMember();
     22    }
    2123    $this->row = $this->gadget->getConfig('row');
    2224    $this->col = $this->gadget->getConfig('col');
  • OpenPNE3/trunk/apps/pc_frontend/modules/member/actions/components.class.php

    r11715 r12090  
    1313  public function executeProfileListBox($request)
    1414  {
    15     $memberId = $this->getUser()->getMemberId();
    1615    if ($request->hasParameter('id'))
    1716    {
    18       $memberId = $request->getParameter('id');
     17      $this->member = Doctrine::getTable('Member')->find($request->getParameter('id'));
    1918    }
    20     $this->member = Doctrine::getTable('Member')->find($memberId);
     19    else
     20    {
     21      $this->member = $this->getUser()->getMember();
     22    }
    2123  }
    2224}
Note: See TracChangeset for help on using the changeset viewer.