fix: append trailing php extension to load method if omitted

This commit is contained in:
Victor Westerlund 2026-01-25 10:03:19 +01:00
parent d55ad999b3
commit 909d74e155
Signed by: vlw
GPG key ID: D0AD730E1057DFC6

View file

@ -18,6 +18,11 @@
require_once Path::root("vegvisir/src/request/VV.php");
}
// Append php extension if omitted
if (!substr($pathname, -4) === ".php") {
$pathname .= ".php";
}
require_once VV::root($pathname);
}
}