mirror of
https://codeberg.org/vlw/scaffold.git
synced 2026-02-26 03:21:57 +01:00
fix: append trailing php extension to load() if omitted (#19)
Reviewed-on: https://codeberg.org/vlw/scaffold/pulls/19
This commit is contained in:
parent
d55ad999b3
commit
a77c0ac6a3
1 changed files with 5 additions and 0 deletions
|
|
@ -18,6 +18,11 @@
|
||||||
require_once Path::root("vegvisir/src/request/VV.php");
|
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);
|
require_once VV::root($pathname);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue