fix: append trailing php extension to load() if omitted (#19)

Reviewed-on: https://codeberg.org/vlw/scaffold/pulls/19
This commit is contained in:
Victor Westerlund 2026-01-25 10:04:04 +01:00
parent d55ad999b3
commit a77c0ac6a3

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);
}
}