Changeset 9569
- Timestamp:
- 06/13/08 05:03:55 (5 years ago)
- Files:
Legend:
- Unmodified
- Added
- Removed
- Modified
- Copied
- Moved
plugins/sfDoctrineSimpleCMSPlugin/branches/symfony-1.0/lib/helper/CrossApplicationHelper.php
r9530 r9569 39 39 } 40 40 } 41 /** 42 * Take care of no_script_name 43 */ 44 $appSettingsFile = SF_ROOT_DIR.DIRECTORY_SEPARATOR.'apps'.DIRECTORY_SEPARATOR.$app.DIRECTORY_SEPARATOR.'config'.DIRECTORY_SEPARATOR.'settings.yml' ; 45 if (file_exists($appSettingsFile)) 46 { 47 $yml = sfYaml::load($appSettingsFile) ; 48 $no_script_name = isset($yml[$env]['.settings']['no_script_name']) ? $yml[$env]['.settings']['no_script_name'] : false; 49 } 50 41 51 if ($env == 'dev') 42 52 { … … 45 55 else 46 56 { 47 $path = 'http://' . $host . $routeUrl ;57 $path = 'http://' . $host . ( ! $no_script_name ? ('/'. $app . '.php') : '') . $routeUrl ; 48 58 } 49 59 return $path ;