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