Date: 04/10/00
- Next message: Ulf Wendel: "[PHPLIB-DEV] Connection between New OOH and Template"
- Previous message: kk: "[PHPLIB-DEV] cvs commit"
- Next in thread: uw: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
From: uw
Date: Mon Apr 10 13:00:10 2000
Modified files:
php-lib/php/template.inc
Log message:
Template did not work properly on Win32. On Win32 absolute filenames do
start with a drive letter /[a-z]{1}:/i not with a slash.
Index: php-lib/php/template.inc
diff -u php-lib/php/template.inc:1.17 php-lib/php/template.inc:1.18
--- php-lib/php/template.inc:1.17 Mon Apr 10 12:06:47 2000
+++ php-lib/php/template.inc Mon Apr 10 13:00:09 2000
@@ -5,7 +5,7 @@
* (C) Copyright 1999 NetUSE GmbH
* Kristian Koehntopp
*
- * $Id: template.inc,v 1.17 2000/04/10 10:06:47 kk Exp $
+ * $Id: template.inc,v 1.18 2000/04/10 11:00:09 uw Exp $
*
*/
@@ -325,7 +325,7 @@
*/
function filename($filename) {
/* short path for absolute filenames */
- if (substr($filename, 0, 1) == "/") {
+ if (substr($filename, 0, 1) == "/" || preg_match("/[a-z]{1}:/i",$filename) ) {
if (file_exists($filename))
return $filename;
else {
-
PHPLIB Developers Mailing List. Send messages to <phplib-dev <email protected>>.
To unsubscribe, send "unsubscribe" to <phplib-dev-request <email protected>> in
the body, not the subject, of your message.
- Next message: Ulf Wendel: "[PHPLIB-DEV] Connection between New OOH and Template"
- Previous message: kk: "[PHPLIB-DEV] cvs commit"
- Next in thread: uw: "[PHPLIB-DEV] cvs commit"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]

