We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent ad62981 commit 22fff80Copy full SHA for 22fff80
1 file changed
histou/bootstrap.php
@@ -8,17 +8,9 @@
8
@link https://github.com/ConSol/histou
9
**/
10
11
-function getPath()
12
-{
13
- return substr(realpath(dirname(__FILE__)), 0, -6);
14
-}
15
-
16
-spl_autoload_register('histou_autoload');
17
18
-function histou_autoload($className)
19
+spl_autoload_register(function ($className) {
20
$file = strtolower(str_replace('\\', DIRECTORY_SEPARATOR, $className)).'.php';
21
if (file_exists($file)) {
22
require_once $file;
23
}
24
+});
0 commit comments