diff --git a/library/Icinga/Cli/Command.php b/library/Icinga/Cli/Command.php index d1a19862a..c1d7705b8 100644 --- a/library/Icinga/Cli/Command.php +++ b/library/Icinga/Cli/Command.php @@ -50,6 +50,9 @@ abstract class Command /** @var bool Whether to automatically load enabled modules */ protected $loadEnabledModules = true; + /** @var bool Whether to enable trace for the CLI commands */ + protected $trace = false; + public function __construct(App $app, $moduleName, $commandName, $actionName, $initialize = true) { $this->app = $app; diff --git a/library/Icinga/Web/Navigation/ConfigMenu.php b/library/Icinga/Web/Navigation/ConfigMenu.php index db3f56602..ba541f721 100644 --- a/library/Icinga/Web/Navigation/ConfigMenu.php +++ b/library/Icinga/Web/Navigation/ConfigMenu.php @@ -173,12 +173,10 @@ class ConfigMenu extends BaseHtmlElement protected function getHealthCount() { $count = 0; - $title = null; $worstState = null; foreach (HealthHook::collectHealthData()->select() as $result) { if ($worstState === null || $result->state > $worstState) { $worstState = $result->state; - $title = $result->message; $count = 1; } elseif ($worstState === $result->state) { $count++; @@ -200,8 +198,6 @@ class ConfigMenu extends BaseHtmlElement break; } - $this->title = $title; - return $count; }