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

Changeset 9618


Ignore:
Timestamp:
Dec 22, 2008, 1:12:52 AM (11 years ago)
Author:
ShogoKawahara
Message:

#3119:fixed application/gadget component doesn't set parent parameter

File:
1 edited

Legend:

Unmodified
Added
Removed
  • OpenPNE3/plugins/opOpenSocialPlugin/trunk/apps/pc_frontend/modules/application/actions/components.class.php

    r9525 r9618  
    5454      'lang'      => $culture[0],
    5555      'view'      => $this->view,
    56       //'parent'  => '',
     56      'parent'    => $this->getRequest()->getUri(),
    5757      'st'        => base64_encode($securityToken->toSerialForm()),
    5858      'url'       => $url,
     
    6161    $criteria->add(ApplicationSettingPeer::MEMBER_APPLICATION_ID, $mod_id);
    6262    $app_settings = ApplicationSettingPeer::doSelect($criteria);
     63    $userpref_param_prefix = Config::get('userpref_param_prefix','up_');
    6364    foreach ($app_settings as $app_setting)
    6465    {
    65       $getParams['up_'.$app_setting->getName()] = $app_setting->getValue();
     66      $getParams[$userpref_param_prefix.$app_setting->getName()] = $app_setting->getValue();
    6667    }
    6768    $this->iframe_url = sfContext::getInstance()->getController()->genUrl('gadgets/ifr').'?'.http_build_query($getParams).'#rpctoken='.rand(0,getrandmax());
Note: See TracChangeset for help on using the changeset viewer.