Skip to content

Commit

Permalink
Adjust usage of object->checkcommand everywhere
Browse files Browse the repository at this point in the history
  • Loading branch information
yhabteab authored and nilmerg committed Jun 10, 2022
1 parent d962d07 commit a091988
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 3 deletions.
4 changes: 2 additions & 2 deletions application/controllers/GraphController.php
Original file line number Diff line number Diff line change
Expand Up @@ -141,7 +141,7 @@ private function icingadbService()

$this->supplyImage(
$service,
$service->checkcommand,
$service->checkcommand_name,
$checkCommandColumn
);
}
Expand All @@ -166,7 +166,7 @@ private function icingadbHost()

$this->supplyImage(
$host,
$host->checkcommand,
$host->checkcommand_name,
$checkCommandColumn
);
}
Expand Down
2 changes: 1 addition & 1 deletion library/Graphite/Web/Widget/Graphs.php
Original file line number Diff line number Diff line change
Expand Up @@ -191,7 +191,7 @@ public function __construct($object)
$this->renderInline = Url::fromRequest()->getParam('format') === 'pdf';

if ($object instanceof Model) {
$this->checkCommand = $object->checkcommand;
$this->checkCommand = $object->checkcommand_name;
$this->obscuredCheckCommand = $object->vars[Graphs::getObscuredCheckCommandCustomVar()] ?? null;
} else {
$this->checkCommand = $object->{"{$this->objectType}_check_command"};
Expand Down

0 comments on commit a091988

Please sign in to comment.