mirror of
https://github.com/friendica/friendica
synced 2025-04-19 08:30:11 +00:00
Use Args::getMethod() at various places
This commit is contained in:
parent
ee2a15d822
commit
4e67bfed8d
5 changed files with 6 additions and 15 deletions
|
@ -223,7 +223,7 @@ abstract class BaseModule implements ICanHandleRequests
|
|||
|
||||
$this->profiler->set(microtime(true) - $timestamp, 'init');
|
||||
|
||||
switch ($this->server['REQUEST_METHOD'] ?? Router::GET) {
|
||||
switch ($this->args->getMethod() ?? Router::GET) {
|
||||
case Router::DELETE:
|
||||
$this->delete($request);
|
||||
break;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue