fix includes
[m6w6/pq-gateway] / lib / autoload.php
index d7b0cd8d4bf0ddc165af71a50e61d4e70cb5ee9a..e45fd2c81c3f3b711ca69c7cf8630be7a3cef99f 100644 (file)
@@ -1,7 +1,7 @@
 <?php
 
 spl_autoload_register(function($c) {
-       if (substr($c, 0, 10) === "pq\\Gateway" || susbtr($c, 0, 8) === "pq\\Query") {
+       if (substr($c, 0, 11) === "pq\\Gateway\\" || substr($c, 0, 9) === "pq\\Query\\" || substr($c, 0, 10) === "pq\\Mapper\\") {
                return include __DIR__ . "/" . strtr($c, "\\", "/") . ".php";
        }
 });