Development

Changeset 8557

You must first sign up to be able to contribute.

Changeset 8557

Show
Ignore:
Timestamp:
04/19/08 17:09:19 (1 year ago)
Author:
fabien
Message:

fixed genUrl() to always take sf_relative_url_root setting into account when building a URL

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • branches/1.1/lib/controller/sfWebController.class.php

    r7964 r8557  
    4242    } 
    4343 
    44     $url = ''; 
    4544    if (!sfConfig::get('sf_no_script_name')) 
    4645    { 
    47       $url = $this->context->getRequest()->getScriptName(); 
    48     } 
    49     else if ($sf_relative_url_root = $this->context->getRequest()->getRelativeUrlRoot()) 
    50     { 
    51       $url = $sf_relative_url_root
     46      $url = sfConfig::get('sf_relative_url_root', $this->context->getRequest()->getScriptName()); 
     47    } 
     48    else 
     49    { 
     50      $url = $this->context->getRequest()->getRelativeUrlRoot()
    5251    } 
    5352 

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.