Changeset 295 in t29-www for lib


Ignore:
Timestamp:
Sep 8, 2012, 9:38:16 AM (12 years ago)
Author:
heribert
Message:

Morgendliches Bugkillen.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • lib/technikum29.php

    r288 r295  
    1313$webroot = realpath("$lib/../");  # file path to root of t29 web installation
    1414$file = substr($_SERVER['SCRIPT_FILENAME'], strlen($_SERVER['DOCUMENT_ROOT'])); # e.g.: "/de/page.php"
     15# Bug when DOCUMENT_ROOT ends with trailing slash: make sure $file begins with /:
     16if($file{0} != '/') $file = "/$file";
    1517
    1618// exactly define debugging behaviour
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