Changeset 650 in t29-www
- Timestamp:
- Aug 29, 2014, 6:39:20 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
lib/host.php
r649 r650 233 233 $this->script_filename = substr(realpath($_SERVER['SCRIPT_FILENAME']), strlen($this->document_root)); # e.g.: "/de/page.php" 234 234 235 // Windows realpath() converts Unix Paths ($_SERVER) to Windows Paths (like \en\index.php). 236 // We want to use unix paths ($_SERVER like) internally, so do this dummy conversion back, if neccessary 237 $this->script_filename = str_replace('\\', '/', $this->script_filename); 238 235 239 # Bug when DOCUMENT_ROOT ends with trailing slash: make sure $file begins with /: 236 240 $this->slash_filename = $this->script_filename; 237 241 if($this->slash_filename{0} != '/') $this->slash_filename = '/'.$this->slash_filename; 238 239 // Windows realpath() converts Unix Paths ($_SERVER) to Windows Paths (like \en\index.php). 240 // We want to use unix paths ($_SERVER like) internally, so do this dummy conversion back, if neccessary 241 $this->script_filename = str_replace('\\', '/', $this->script_filename); 242 242 243 243 //phpinfo(); exit; 244 244 return $this; // Chaining
Note: See TracChangeset
for help on using the changeset viewer.