Development

Changeset 10829

You must first sign up to be able to contribute.

Changeset 10829

Show
Ignore:
Timestamp:
08/13/08 09:03:36 (11 months ago)
Author:
fabien
Message:

[1.2] simplified cookie storage in sfWebResponse

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.2/lib/response/sfWebResponse.class.php

    r10828 r10829  
    166166    } 
    167167 
    168     $this->cookies[] = array( 
     168    $this->cookies[$name] = array( 
    169169      'name'     => $name, 
    170170      'value'    => $value, 
     
    685685  public function getCookies() 
    686686  { 
    687     $cookies = array(); 
    688     foreach ($this->cookies as $cookie) 
    689     { 
    690       $cookies[$cookie['name']] = $cookie; 
    691     } 
    692  
    693     return $cookies; 
     687    return $this->cookies; 
    694688  } 
    695689 

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.