[TASK] Now using DIRECTORY_SEPERATOR for the few paths we have.

This commit is contained in:
Jan Philipp Timme
2011-06-26 15:26:01 +00:00
parent 8e32f35edf
commit f9beef4c81
4 changed files with 21 additions and 20 deletions
+1 -1
View File
@@ -7,7 +7,7 @@
* @return void
*/
function __autoload($className) {
$file = "Classes/" . str_replace("_", "/", $className) . ".php";
$file = "Classes" . DIRECTORY_SEPARATOR . str_replace("_", DIRECTORY_SEPARATOR, $className) . ".php";
if(file_exists($file) === TRUE) {
require_once($file);
} else {