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

Changeset 12534


Ignore:
Timestamp:
Aug 5, 2009, 12:35:01 PM (10 years ago)
Author:
ShogoKawahara
Message:

#4230:fixed sfOpenPNECommunityAction::executeEdit() for mobile_frontend application (3.0.x)

Location:
OpenPNE3/branches/STABLE/3.0.x
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/branches/STABLE/3.0.x/apps/pc_frontend/modules/community/actions/actions.class.php

    r11019 r12534  
    2525  public function executeEdit($request)
    2626  {
     27    $this->enableImage = true;
    2728    $result = parent::executeEdit($request);
    2829
     
    3031      sfConfig::set('sf_nav_type', 'default');
    3132    }
     33
    3234
    3335    return $result;
  • OpenPNE3/branches/STABLE/3.0.x/lib/action/sfOpenPNECommunityAction.class.php

    r11668 r12534  
    7777    $this->communityForm       = new CommunityForm($this->community);
    7878    $this->communityConfigForm = new CommunityConfigForm(array(), array('community' => $this->community));
    79     $this->communityFileForm   = new CommunityFileForm(array(), array('community' => $this->community));
     79    $this->communityFileForm = isset($this->enableImage) && $this->enableImage ?
     80      new CommunityFileForm(array(), array('community' => $this->community)) :
     81      new CommunityFileForm();
    8082
    8183    if ($request->isMethod('post'))
Note: See TracChangeset for help on using the changeset viewer.