CLI: Also register assets

Because assets are not registered in the CLI context,
CLI actions cannot access the full style sheet.
This is necessary for Icinga Reporting though in order to send PDF reports.
This commit is contained in:
Eric Lippmann 2020-06-03 14:54:24 +02:00 committed by Johannes Meyer
parent 886925959d
commit 49eb245580
1 changed files with 1 additions and 1 deletions

View File

@ -1308,7 +1308,7 @@ class Module
*/
protected function registerAssets()
{
if ($this->app->isCli() || ! is_dir($this->assetDir)) {
if (! is_dir($this->assetDir)) {
return $this;
}