mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-06-04 00:58:38 -04:00
More refactorings.
This commit is contained in:
parent
351c395f82
commit
0b28a9eea1
3 changed files with 163 additions and 156 deletions
|
@ -22,8 +22,8 @@ class App {
|
|||
|
||||
public function get_setup() {
|
||||
|
||||
$consts = get_defined_constants(true)['user'];
|
||||
$consts['PHP_VERSION'] = PHP_VERSION;
|
||||
$consts = get_defined_constants(true)["user"];
|
||||
$consts["PHP_VERSION"] = PHP_VERSION;
|
||||
return $consts;
|
||||
}
|
||||
|
||||
|
@ -99,8 +99,8 @@ class App {
|
|||
return 500;
|
||||
}
|
||||
|
||||
foreach ($this->options["view"]["indexFiles"] as $if) {
|
||||
if (file_exists($path . "/" . $if)) {
|
||||
foreach ($this->options["view"]["indexFiles"] as $name) {
|
||||
if (file_exists($path . "/" . $name)) {
|
||||
return 200;
|
||||
}
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue