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

Changeset 10618


Ignore:
Timestamp:
Feb 3, 2009, 10:27:13 PM (11 years ago)
Author:
ShogoKawahara
Message:

fixed _partsForm and _partsYesNo don't set URL correctly when url parameter of option didn't set

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

Legend:

Unmodified
Added
Removed
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsForm.php

    r10555 r10618  
    11<?php
    22$options->setDefault('button', __('Send'));
    3 $options->setDefault('url', sfContext::getInstance()->getRouting()->getCurrentInternalUri());
     3$options->setDefault('url', url_for(sfContext::getInstance()->getRouting()->getCurrentInternalUri()));
    44$options->setDefault('method','post');
    55?>
  • OpenPNE3/trunk/apps/pc_frontend/templates/_partsYesNo.php

    r10561 r10618  
    11<?php
    2 $url = sfContext::getInstance()->getRouting()->getCurrentInternalUri();
     2$url = url_for(sfContext::getInstance()->getRouting()->getCurrentInternalUri());
    33$options->setDefault('yes_button', __('Yes'));
    44$options->setDefault('no_button', __('No'));
Note: See TracChangeset for help on using the changeset viewer.