diff options
author | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-08-15 17:38:49 +0000 |
---|---|---|
committer | hugetoad <hugetoad@97f52cf1-0a1b-0410-bd0e-c28be96e8082> | 2003-08-15 17:38:49 +0000 |
commit | bb1a8e2a9a50d9566d818aa8b8a5fb7b0433c774 (patch) | |
tree | 10b2584cc63c8d38b7f449657682e8a027aa8dcb /frontends/php | |
parent | d37bdace60f6acc8326cdb16b5ecaeb5c00a4b1b (diff) | |
download | zabbix-bb1a8e2a9a50d9566d818aa8b8a5fb7b0433c774.tar.gz zabbix-bb1a8e2a9a50d9566d818aa8b8a5fb7b0433c774.tar.xz zabbix-bb1a8e2a9a50d9566d818aa8b8a5fb7b0433c774.zip |
Minor changes.
git-svn-id: svn://svn.zabbix.com/trunk@922 97f52cf1-0a1b-0410-bd0e-c28be96e8082
Diffstat (limited to 'frontends/php')
-rw-r--r-- | frontends/php/include/config.inc.php | 4 | ||||
-rw-r--r-- | frontends/php/screenedit.php | 3 |
2 files changed, 3 insertions, 4 deletions
diff --git a/frontends/php/include/config.inc.php b/frontends/php/include/config.inc.php index 3e018b4d..d3e62765 100644 --- a/frontends/php/include/config.inc.php +++ b/frontends/php/include/config.inc.php @@ -4326,9 +4326,9 @@ where h.hostid=i.hostid and i.itemid=f.itemid and f.triggerid=$triggerid"; return DBexecute($sql); } - function update_screen_item($screenitemid,$graphid,$width,$height) + function update_screen_item($screenitemid,$resource,$resourceid,$width,$height) { - $sql="update screens_items set graphid=$graphid,width=$width,height=$height where screenitemid=$screenitemid"; + $sql="update screens_items set resource=$resourceid,resourceid=$resourceid,width=$width,height=$height where screenitemid=$screenitemid"; return DBexecute($sql); } diff --git a/frontends/php/screenedit.php b/frontends/php/screenedit.php index 9cd0a435..6fad8c19 100644 --- a/frontends/php/screenedit.php +++ b/frontends/php/screenedit.php @@ -62,8 +62,7 @@ } if($HTTP_GET_VARS["register"]=="update") { - $result=update_screen_item($HTTP_GET_VARS["screenitemid"],$HTTP_GET_VARS["graphid"],$HTTP_GET_VARS["width"],$HTTP_GET_VARS["height"]); - $result=update_screen_graph($HTTP_GET_VARS["screengraphid"],$HTTP_GET_VARS["itemid"],$HTTP_GET_VARS["width"],$HTTP_GET_VARS["height"]); + $result=update_screen_item($HTTP_GET_VARS["screenitemid"],$HTTP_GET_VARS["resource"],$HTTP_GET_VARS["resourceid"],$HTTP_GET_VARS["width"],$HTTP_GET_VARS["height"]); show_messages($result,"Item updated","Cannot update item"); unset($HTTP_GET_VARS["x"]); } |