Skip to content

Commit 0ec6207

Browse files
committed
Updated for Composer Support
1 parent 6d75700 commit 0ec6207

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

framework/Loader.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ public function psr0Autoload($className)
9696
$php_web_mvc_namespace_paths = ["framework", APP_CONTROLLERS_PATH, APP_MODELS_PATH, APP_VIEWS_PATH, "classes", "util"];
9797
$is_classname_in_namespaces_path = false;
9898
foreach ($php_web_mvc_namespace_paths as $namespace_path) {
99-
if (str_starts_with($className, "$namespace_path\\")) {
99+
if (strpos($className, "$namespace_path\\") == 0) {
100100
$is_classname_in_namespaces_path = true;
101101
break;
102102
}

0 commit comments

Comments
 (0)