Development

Changeset 9671

You must first sign up to be able to contribute.

Changeset 9671

Show
Ignore:
Timestamp:
06/19/08 15:30:33 (2 months ago)
Author:
fabien
Message:

fixed typo

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.0/lib/util/sfBrowser.class.php

    r9668 r9671  
    201201 
    202202    // for HTML/XML content, create a DOM and sfDomCssSelector objects for the response content 
    203     $content = $response->getContentType(); 
    204     if (preg_match('/(x|ht)ml/i', $content, $matches)) 
     203    if (preg_match('/(x|ht)ml/i', $response->getContentType(), $matches)) 
    205204    { 
    206205      $this->dom = new DomDocument('1.0', sfConfig::get('sf_charset')); 
     
    208207      if ('x' == $matches[1]) 
    209208      { 
    210         $this->dom->loadXML($content); 
     209        $this->dom->loadXML($response->getContent()); 
    211210      } 
    212211      else 
    213212      { 
    214         $this->dom->loadHTML($content); 
     213        $this->dom->loadHTML($response->getContent()); 
    215214      } 
    216215      $this->domCssSelector = new sfDomCssSelector($this->dom);