diff options
Diffstat (limited to 'debian/patches/debian/0001-php-short-open-tags.patch')
-rw-r--r-- | debian/patches/debian/0001-php-short-open-tags.patch | 57 |
1 files changed, 57 insertions, 0 deletions
diff --git a/debian/patches/debian/0001-php-short-open-tags.patch b/debian/patches/debian/0001-php-short-open-tags.patch new file mode 100644 index 0000000..539f1ba --- /dev/null +++ b/debian/patches/debian/0001-php-short-open-tags.patch @@ -0,0 +1,57 @@ +Author: David Kunz <david.kunz@dknet.ch> +Description: correcting in php short open tags (Closes: #977714). + +diff -Naurp icingaweb2-module-boxydash-orig/application/views/scripts/index/index.phtml icingaweb2-module-boxydash/application/views/scripts/index/index.phtml +--- icingaweb2-module-boxydash-orig/application/views/scripts/index/index.phtml ++++ icingaweb2-module-boxydash/application/views/scripts/index/index.phtml +@@ -1,4 +1,4 @@ +-<? ++<?php + use Icinga\Module\Monitoring\Object\Service; + use Icinga\Module\Monitoring\Object\Host; + +@@ -15,7 +15,7 @@ use Icinga\Module\Monitoring\Object\Host + <div class="content"> + + <h1>Boxy Dashboard</h1> +- <? if ($this->showlegend){ ?> ++ <?php if ($this->showlegend){ ?> + <div class="boxy_legend"> + <span class="boxy_sublegend"> + <span class="legendtext">✔ = Acknowledged</span> +@@ -36,9 +36,9 @@ use Icinga\Module\Monitoring\Object\Host + <span class="boxy_legend_box unknown-ack" >unknown</span> + </span> + </div> +- <? } ?> ++ <?php } ?> + <h2>Host Info</h2> +-<? ++<?php + foreach ($this->hosts as $host){ + $title = htmlspecialchars($host->{'host_display_name'}); + $size=$this->boxsize; +@@ -50,12 +50,12 @@ foreach ($this->hosts as $host){ + $title.=" (Acknowledged)"; + }?> + <a href='<?= $this->path_prefix ?>/monitoring/host/show?host=<?=$host->{'host_name'}?>' class='boxy_box state <?=$returncode?>' style='width:<?=$size?>px; height:<?=$size?>px; font-size:<?=$size?>px;' title="<?=$title?>"><?=$content?></a> +-<? } ?> ++<?php } ?> + + <br clear="all"/> + <h2>Service Info</h2> + +-<? foreach ($this->services as $service){ ++<?php foreach ($this->services as $service){ + $service->{'service_hard_state'} = ($service->{'service_hard_state'}) ? "hard" : "soft"; + $title = $service->{'host_display_name'}.": ".$service->{'service_description'}; + #."(".$service->{'current_check_attempt'} .",".$service->{'max_check_attempts'} .")(". $service->{'service_hard_state'}.")+acked:".$service->{'service_acknowledged'} ; +@@ -78,7 +78,7 @@ foreach ($this->hosts as $host){ + $title=htmlspecialchars($title."\n ".$service->{'service_output'});?> + <a href='<?= $this->path_prefix ?>/monitoring/service/show?host=<?=$service->{'host_name'}?>&service=<?=$service->{'service_description'}?>' class='boxy_box state <?=$returncode?>' style='width:<?=$size?>px; height:<?=$size?>px; font-size:<?=$size?>px;' title="<?=$title?>"><?=$content?></a> + +-<? } ?> ++<?php } ?> + <br clear=all> + <pre style="font-size:20px"><?=$this->debug?></pre> + </div> |