Update autoloader.php
This commit is contained in:
parent
c2badb57d7
commit
db0108b0e9
@ -5,8 +5,7 @@
|
|||||||
*/
|
*/
|
||||||
|
|
||||||
spl_autoload_register(function ($class) {
|
spl_autoload_register(function ($class) {
|
||||||
if (preg_match('/^DebugBar/', $class) || preg_match('/^'.preg_quote('Psr\Log','/').'/', $class))
|
if (preg_match('/^DebugBar/', $class) || preg_match('/^'.preg_quote('Psr\Log', '/').'/', $class)) {
|
||||||
{
|
|
||||||
$file = DOL_DOCUMENT_ROOT.'/includes/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php';
|
$file = DOL_DOCUMENT_ROOT.'/includes/'.str_replace('\\', DIRECTORY_SEPARATOR, $class).'.php';
|
||||||
//var_dump($class.' - '.file_exists($file).' - '.$file);
|
//var_dump($class.' - '.file_exists($file).' - '.$file);
|
||||||
if (file_exists($file)) {
|
if (file_exists($file)) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user