apps/mobile_frontend/modules/member/templates/profileSuccess.phpには3.4,3.6で違いは無し.
1 <?php op_mobile_page_title($member->getName()) ?>
2 <?php $culture = sfCultureInfo::getInstance($sf_user->getCulture()); ?>
3
4 <?php if ($member == $sf_user->getMember()) : ?>
5 <font color="<?php echo $op_color["core_color_22"] ?>">
6 <?php echo __('This is your page other member see.') ?><br>
7 <?php echo __('If you edit profile, access %1%.', array('%1%' => link_to('「'. __('Edit profile') .'」', '@member_editProfile'))) ?>
8 </font>
9 <?php endif; ?>
10
apps/mobile_frontend/modules/member/actions/actions.class.phpのexecuteProfile()でも3.4と3.6では違いは無し.
56 public function executeProfile($request)
57 {
58 $this->friendsSize = 5;
59 $this->communitiesSize = 5;
60
61 $gadgets = Doctrine::getTable('Gadget')->retrieveGadgetsByTypesName('mobileProfile');
62 $this->mobileTopGadgets = $gadgets['mobileProfileTop'];
63 $this->mobileContentsGadgets = $gadgets['mobileProfileContents'];
64 $this->mobileBottomGadgets = $gadgets['mobileProfileBottom'];
65
66 return parent::executeProfile($request);
67 }
以下違いが発生している部分.
3.4のapps/mobile_frontend/modules/member/actions/actions.class.phpが継承しているlib/action/sfOpenPNEMemberAction.class.php
107 /**
108 * Executes profile action
109 *
110 * @param sfRequest $request A request object
111 */
112 public function executeProfile($request)
113 {
114 $this->redirectIf($this->relation->isAccessBlocked(), '@error');
115
116 $id = $this->getRequestParameter('id', $this->getUser()->getMemberId());
117 $this->member = Doctrine::getTable('Member')->find($id);
118
119 $this->forward404Unless($this->member, 'Undefined member.');
120
121 if (!$this->friendsSize)
122 {
123 $this->friendsSize = 9;
124 }
125 $this->friends = $this->member->getFriends($this->friendsSize, true);
126
127 if (!$this->communitiesSize)
128 {
129 $this->communitiesSize = 9;
130 }
131 $this->communities = $this->member->getJoinCommunities($this->communitiesSize, true);
132 $this->crownIds = Doctrine::getTable('CommunityMember')->getCommunityIdsOfAdminByMemberId($id);
133
134 return sfView::SUCCESS;
135 }
3.6のapps/mobile_frontend/modules/member/actions/actions.class.phpが継承しているlib/action/opMemberAction.class.php
180 public function executeProfile($request)
181 {
182 $id = $this->getRequestParameter('id', $this->getUser()->getMemberId());
183 if ('member_profile_mine' === sfContext::getInstance()->getRouting()->getCurrentRouteName())
184 {
185 $this->forward404Unless($id);
186 $this->member = $this->getUser()->getMember();
187 }
188 else
189 {
190 $this->member = $this->getRoute()->getObject();
191 }
192
193 if (!$this->friendsSize)
194 {
195 $this->friendsSize = 9;
196 }
197 $this->friends = $this->member->getFriends($this->friendsSize, true);
198
199 if (!$this->communitiesSize)
200 {
201 $this->communitiesSize = 9;
202 }
203 $this->communities = $this->member->getJoinCommunities($this->communitiesSize, true);
204 $this->crownIds = Doctrine::getTable('CommunityMember')->getCommunityIdsOfAdminByMemberId($id);
205
206 return sfView::SUCCESS;
207 }
アクションで与えられる$memberの取得方法が違うためprofileSuccess.phpの4行目の$member == $sf_user->gerMember()で違いが発生しているのではないか.