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

Changeset 10234


Ignore:
Timestamp:
Jan 19, 2009, 10:05:38 PM (11 years ago)
Author:
ebihara
Message:

#3377:fixed profiles, their FromType? is "textarea", are now filterd by the nl2br function

Location:
OpenPNE3/trunk/apps/pc_frontend/modules/member/templates
Files:
2 edited

Legend:

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

    r9950 r10234  
    5656foreach ($member->getProfiles() as $profile)
    5757{
    58   $list[$profile->getCaption()] = $profile;
     58  $caption = $profile->getCaption();
     59  if ($profile->getFormType() === 'textarea')
     60  {
     61    $profile = nl2br($profile);
     62  }
     63  $list[$caption] = $profile;
    5964}
    6065include_list_box('profile', $list, array('title' => 'プロフィール'))
  • OpenPNE3/trunk/apps/pc_frontend/modules/member/templates/searchSuccess.php

    r10197 r10234  
    2020  if ($member->getProfile('self_intro'))
    2121  {
    22     $list[$key][$member->getProfile('self_intro')->getCaption()] = $member->getProfile('self_intro');
     22    $list[$key][$member->getProfile('self_intro')->getCaption()] = nl2br($member->getProfile('self_intro'));
    2323  }
    2424  $list[$key][__('最終ログイン')] = distance_of_time_in_words($member->getLastLoginTime());
Note: See TracChangeset for help on using the changeset viewer.