Development

Changeset 12786

You must first sign up to be able to contribute.

Changeset 12786

Show
Ignore:
Timestamp:
11/08/08 22:37:26 (5 years ago)
Author:
insaini
Message:

Updated AppUrlHelper?.php

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • plugins/sfSmartyPlugin/trunk/lib/helper/AppUrlHelper.php

    r11815 r12786  
    1111*/ 
    1212function link_to_app($name = '', $internal_uri = '', $options = array(), $app = SF_APP) { 
    13   $environment = (SF_ENVIRONMENT == 'prod') ? "" : "_".SF_ENVIRONMENT
     13  $environment = (sfConfig::get('sf_environment') == 'prod') ? "" : "_".sfConfig::get('sf_environment')
    1414  $protocol = (sfContext::getInstance()->getRequest()->isSecure()) ? "https" : "http"; 
    15   $url = $protocol."://".$_SERVER["SERVER_NAME"].url_for("").strtolower($app).$environment. ".php/".$internal_uri; 
     15  $url = $protocol."://".$_SERVER["SERVER_NAME"]."/".strtolower($app).$environment. ".php/".$internal_uri; 
    1616  return link_to($name, $url, $options); 
    1717}