From: gggeek Date: Thu, 2 Apr 2015 23:48:56 +0000 (+0100) Subject: Fix autoloader to work with helper classes on linux X-Git-Tag: 4.0.0-alpha^2~111 X-Git-Url: http://git.onelab.eu/?p=plcapi.git;a=commitdiff_plain;h=428236a8cdb916da4a33cf57ef90739b70af994e Fix autoloader to work with helper classes on linux --- diff --git a/src/Autoloader.php b/src/Autoloader.php index b03b1cb..77ba30f 100644 --- a/src/Autoloader.php +++ b/src/Autoloader.php @@ -29,7 +29,7 @@ class Autoloader return; } - if (is_file($file = __DIR__ . str_replace('PhpXmlRpc\\', '/', $class).'.php')) { + if (is_file($file = __DIR__ . str_replace(array('PhpXmlRpc\\', '\\'), '/', $class).'.php')) { require $file; } }