Browse Source

Added __DIR__ to autoload.php

Tobias Reich 11 years ago
parent
commit
43cbea45e1
1 changed files with 1 additions and 1 deletions
  1. 1 1
      php/autoload.php

+ 1 - 1
php/autoload.php

@@ -7,7 +7,7 @@
  */
 
 function __autoload($class_name) {
-	require './modules/' . $class_name . '.php';
+	require __DIR__ . '/modules/' . $class_name . '.php';
 }
 
 ?>