Fix autoloader to work with helper classes on linux
[plcapi.git] / src / Autoloader.php
index b03b1cb..77ba30f 100644 (file)
@@ -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;
         }
     }