add LICENSE file
[ouya-imagestore.git] / src / imagestore / Autoloader.php
index cde5c891cec10b9e5cada0419d311abb8537c814..5d877ba1ad5b74e9353634cbe1d74dfac55915a9 100644 (file)
@@ -5,7 +5,9 @@ class Autoloader
     public static function load($class)
     {
         $file = str_replace(array('_', '\\'), '/', $class) . '.php';
-        include_once $file;
+        if (stream_resolve_include_path($file)) {
+            include_once $file;
+        }
     }
 
     public static function register()