mirror of
https://github.com/lrsjng/h5ai.git
synced 2025-08-10 23:34:02 +02:00
Refactor PHP.
This commit is contained in:
@@ -19,7 +19,7 @@ class Api {
|
|||||||
$action = use_request_param("action");
|
$action = use_request_param("action");
|
||||||
json_fail(100, "unsupported request", !in_array($action, $this->actions));
|
json_fail(100, "unsupported request", !in_array($action, $this->actions));
|
||||||
|
|
||||||
$methodname = "on_$action";
|
$methodname = "on_${action}";
|
||||||
$this->$methodname();
|
$this->$methodname();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user