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

Changeset 10907


Ignore:
Timestamp:
Feb 27, 2009, 6:07:54 PM (12 years ago)
Author:
ShogoKawahara
Message:

#3278:added ability to render admin icon for community administrator on profile

Location:
OpenPNE3/trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/modules/member/templates/profileSuccess.php

    r10899 r10907  
    3838  'title' => __('Communities List'),
    3939  'list' => $communities,
     40  'crownIds' => $sf_data->getRaw('crownIds'),
    4041  'link_to' => 'community/home?id=',
    4142  'moreInfo' => array(link_to(sprintf('%s(%d)', __('Show all'), $member->countCommunityMembers()), 'community/joinlist')),
  • OpenPNE3/trunk/lib/action/sfOpenPNEMemberAction.class.php

    r10706 r10907  
    113113    $id = $this->getRequestParameter('id', $this->getUser()->getMemberId());
    114114    $this->member = MemberPeer::retrieveByPk($id);
     115   
     116    $this->forward404Unless($this->member, 'Undefined member.');
     117
    115118    $this->communities = CommunityPeer::retrievesByMemberId($id);
    116     $this->forward404Unless($this->member, 'Undefined member.');
     119    $this->crownIds = CommunityMemberPeer::getCommunityIdsOfAdminByMemberId($id);
    117120
    118121    return sfView::SUCCESS;
Note: See TracChangeset for help on using the changeset viewer.