Added __DIR__ to autoload.php
This commit is contained in:
parent
b727211f47
commit
43cbea45e1
@ -7,7 +7,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
function __autoload($class_name) {
|
function __autoload($class_name) {
|
||||||
require './modules/' . $class_name . '.php';
|
require __DIR__ . '/modules/' . $class_name . '.php';
|
||||||
}
|
}
|
||||||
|
|
||||||
?>
|
?>
|
Loading…
Reference in New Issue
Block a user