mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-26 23:34:08 +02:00
monitoring: Remove trailing semicolons from inline echo tags in the components/command view script
refs #5543
This commit is contained in:
parent
156fc9c85c
commit
84ecce3e7c
@ -1,22 +1,21 @@
|
|||||||
<?php
|
<?php
|
||||||
|
|
||||||
$parts = explode('!', $object->check_command);
|
$parts = explode('!', $object->check_command);
|
||||||
$command = array_shift($parts);
|
$command = array_shift($parts);
|
||||||
|
|
||||||
?>
|
if ($showInstance): ?>
|
||||||
|
|
||||||
<?php if ($showInstance): ?>
|
|
||||||
<tr class="newsection">
|
<tr class="newsection">
|
||||||
<th><?= $this->translate('Instance'); ?></th>
|
<th><?= $this->translate('Instance') ?></th>
|
||||||
<td><?= $this->escape($object->instance_name); ?></td>
|
<td><?= $this->escape($object->instance_name) ?></td>
|
||||||
</tr>
|
</tr>
|
||||||
<?php endif ?>
|
<?php endif ?>
|
||||||
<tr class="newsection">
|
<tr class="newsection">
|
||||||
<th><?= $this->translate('Command'); ?></th>
|
<th><?= $this->translate('Command') ?></th>
|
||||||
<td>
|
<td>
|
||||||
<?= $this->escape($command); ?>
|
<?= $this->escape($command) ?>
|
||||||
<?php if ($this->hasPermission('monitoring/command/schedule-check') && $object->passive_checks_enabled) {
|
<?php if ($this->hasPermission('monitoring/command/schedule-check') && $object->passive_checks_enabled) {
|
||||||
$title = sprintf($this->translate('Submit a one time or so called passive result for the %s check'), $command);
|
$title = sprintf(
|
||||||
|
$this->translate('Submit a one time or so called passive result for the %s check'), $command
|
||||||
|
);
|
||||||
if ($object->getType() === $object::TYPE_HOST) {
|
if ($object->getType() === $object::TYPE_HOST) {
|
||||||
echo $this->qlink(
|
echo $this->qlink(
|
||||||
$this->translate('Process check result'),
|
$this->translate('Process check result'),
|
||||||
@ -47,9 +46,7 @@ $command = array_shift($parts);
|
|||||||
</tr>
|
</tr>
|
||||||
|
|
||||||
<?php
|
<?php
|
||||||
|
|
||||||
$row = "<tr>\n <th>%s</th>\n <td>%s</td>\n</tr>\n";
|
$row = "<tr>\n <th>%s</th>\n <td>%s</td>\n</tr>\n";
|
||||||
for ($i = 0; $i < count($parts); $i++) {
|
for ($i = 0; $i < count($parts); $i++) {
|
||||||
printf($row, '$ARG' . ($i + 1) . '$', $this->escape($parts[$i]));
|
printf($row, '$ARG' . ($i + 1) . '$', $this->escape($parts[$i]));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user