Changeset 362 in t29-www


Ignore:
Timestamp:
Mar 11, 2013, 10:45:20 PM (6 years ago)
Author:
sven
Message:

Bug gefixt: Unter Windows wurde Sprache nicht mehr richtig erkannt (Grund: t29Host-Webroot-Abstrahierungsschicht, die nicht unter Windows getestet wurde).

Damit wird u.a. auch das englischsprachige Menü wieder richtig eingebunden.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/host.php

    r357 r362  
    158158                   
    159159                $this->script_filename = substr(realpath($_SERVER['SCRIPT_FILENAME']), strlen($this->document_root)); # e.g.: "/de/page.php"
     160               
     161                // Windows realpath() converts Unix Paths ($_SERVER) to Windows Paths (like \en\index.php).
     162                // We want to use unix paths ($_SERVER like) internally, so do this dummy conversion back, if neccessary
     163                $this->script_filename = str_replace('\\', '/', $this->script_filename);
     164               
    160165                //phpinfo(); exit;
    161166        }
Note: See TracChangeset for help on using the changeset viewer.
© 2008 - 2013 technikum29 • Sven Köppel • Some rights reserved
Powered by Trac
Expect where otherwise noted, content on this site is licensed under a Creative Commons 3.0 License