mirror of
https://github.com/friendica/friendica
synced 2025-01-11 00:04:54 +00:00
Fix that (raw)content is always executed during Module::run()
This commit is contained in:
parent
f245fdaa5d
commit
7cba74bb6c
1 changed files with 15 additions and 16 deletions
|
@ -220,7 +220,8 @@ abstract class BaseModule implements ICanHandleRequests
|
||||||
case Router::PUT:
|
case Router::PUT:
|
||||||
$this->put();
|
$this->put();
|
||||||
break;
|
break;
|
||||||
default:
|
}
|
||||||
|
|
||||||
$timestamp = microtime(true);
|
$timestamp = microtime(true);
|
||||||
// "rawContent" is especially meant for technical endpoints.
|
// "rawContent" is especially meant for technical endpoints.
|
||||||
// This endpoint doesn't need any theme initialization or other comparable stuff.
|
// This endpoint doesn't need any theme initialization or other comparable stuff.
|
||||||
|
@ -236,8 +237,6 @@ abstract class BaseModule implements ICanHandleRequests
|
||||||
} finally {
|
} finally {
|
||||||
$this->profiler->set(microtime(true) - $timestamp, 'content');
|
$this->profiler->set(microtime(true) - $timestamp, 'content');
|
||||||
}
|
}
|
||||||
break;
|
|
||||||
}
|
|
||||||
|
|
||||||
return $this->response->generate();
|
return $this->response->generate();
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue