Refactor PHP.

This commit is contained in:
Lars Jung 2014-07-01 03:21:54 +02:00
parent 903b29c4c0
commit b4a1bb1218

View file

@ -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();
}