[puntoengine] r74 committed - Fixed directory separator error in Windows servers than can't load nam...

0 views
Skip to first unread message

punto...@googlecode.com

unread,
Jul 13, 2011, 4:29:39 AM7/13/11
to punto...@googlegroups.com
Revision: 74
Author: jba...@gmail.com
Date: Wed Jul 13 01:28:26 2011
Log: Fixed directory separator error in Windows servers than can't
load namespaces
http://code.google.com/p/puntoengine/source/detail?r=74

Modified:
/trunk/puntoengine/core/Kernel.php

=======================================
--- /trunk/puntoengine/core/Kernel.php Fri Jun 10 06:00:21 2011
+++ /trunk/puntoengine/core/Kernel.php Wed Jul 13 01:28:26 2011
@@ -158,7 +158,12 @@
set_exception_handler('Kernel::exceptionHandler');

date_default_timezone_set ('Europe/Madrid');
- Kernel::$path = str_replace('/core','', dirname(__FILE__));
+
+ $path = dirname(__FILE__);
+ $path = str_replace('\\', '/', $path);
+ $path = str_replace('/core','', $path);
+
+ Kernel::$path = $path;
Kernel::$virtualPath = dirname($_SERVER['PHP_SELF']);
session_start();

Reply all
Reply to author
Forward
0 new messages