Skip to content

Commit ba18790

Browse files
committed
fix not working class autoloader
bump version to 0.8.7
1 parent 0126730 commit ba18790

File tree

1 file changed

+3
-8
lines changed

1 file changed

+3
-8
lines changed

core/Engine.php

+3-8
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ class Core_Engine
1515
* Major and minor version should be set here.
1616
* If revision number is question mark getVersion() will try to determine it from git.
1717
*/
18-
const VERSION = "0.8.6";
18+
const VERSION = "0.8.7";
1919

2020
const ROLE_REMOTE = "remote";
2121
const ROLE_LOCAL = "local";
@@ -487,15 +487,10 @@ protected function _initAutoload()
487487
function ($className) {
488488
$path = str_replace("_", "/", $className);
489489
$path[0] = strtolower($path[0]);
490-
// if (!@file_exists($path . '.php')) {
491-
// return false;
492-
// }
493-
/** @noinspection PhpIncludeInspection */
494-
try {
495-
require_once($path . '.php');
496-
} catch (Exception $e) {
490+
if (!@include_once($path . '.php')) {
497491
return false;
498492
}
493+
499494
return true;
500495
}
501496
);

0 commit comments

Comments
 (0)