Development

Changeset 7275

You must first sign up to be able to contribute.

Changeset 7275

Show
Ignore:
Timestamp:
02/02/08 19:51:48 (1 year ago)
Author:
fabien
Message:

fixed sfFormPropel constructor signature

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/plugins/sfPropelPlugin/lib/propel/sfFormPropel.class.php

    r6807 r7275  
    3535   * 
    3636   * @param BaseObject A Propel object used to initialize default values 
    37    * @param string A CSRF secret (false to disable CSRF protection, null to use the global CSRF secret) 
     37   * @param array      An array of options 
     38   * @param string     A CSRF secret (false to disable CSRF protection, null to use the global CSRF secret) 
    3839   * 
    3940   * @see sfForm 
    4041   */ 
    41   public function __construct(BaseObject $object = null, $CSRFSecret = null) 
     42  public function __construct(BaseObject $object = null, $options = array(), $CSRFSecret = null) 
    4243  { 
    4344    if (is_null($object)) 
     
    5758    } 
    5859 
    59     parent::__construct(array(), $CSRFSecret); 
     60    parent::__construct(array(), $options, $CSRFSecret); 
    6061 
    6162    $this->updateDefaultsFromObject(); 

The Sensio Labs Network

Since 1998, Sensio Labs has been promoting the Open-Source software movement by providing quality web application development, training, consulting, and supporting several large Open-Source projects.