summaryrefslogtreecommitdiffstats
path: root/frontends/php/include
diff options
context:
space:
mode:
authorhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-10 09:27:08 +0000
committerhugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082>2004-01-10 09:27:08 +0000
commit7efd5c5bcaeecf1db24980d6364ae557e5a34fd1 (patch)
treebeb2896358363a70081f257f3e56b9e404c7ff7a /frontends/php/include
parentf2eae7387ccfdde12352044e0d69973b308ccb52 (diff)
downloadzabbix-7efd5c5bcaeecf1db24980d6364ae557e5a34fd1.tar.gz
zabbix-7efd5c5bcaeecf1db24980d6364ae557e5a34fd1.tar.xz
zabbix-7efd5c5bcaeecf1db24980d6364ae557e5a34fd1.zip
Fix for expanding {HOSTNAME}.
git-svn-id: svn://svn.zabbix.com/trunk@1159 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php/include')
-rw-r--r--frontends/php/include/config.inc.php3
1 files changed, 2 insertions, 1 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php
index 00543aad..5230b478 100644
--- a/frontends/php/include/config.inc.php
+++ b/frontends/php/include/config.inc.php
@@ -1756,7 +1756,8 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid";
$search=array("{HOSTNAME}");
$replace=array($row["host"]);
- $description = str_replace($search, $replace,$row["description"]);
+// $description = str_replace($search, $replace,$row["description"]);
+ $description = str_replace("{HOSTNAME}", $row["host"],$row["description"]);
$description=stripslashes(htmlspecialchars($description));