mirror of
https://codeberg.org/vlw/scaffold.git
synced 2026-02-26 11:31:57 +01:00
fix: append trailing php extension to load method if omitted
This commit is contained in:
parent
d55ad999b3
commit
909d74e155
1 changed files with 5 additions and 0 deletions
|
|
@ -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);
|
||||
}
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue