Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/zabbix/zabbix.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
Diffstat (limited to 'ui/include/views/configuration.host.discovery.edit.php')
-rw-r--r--ui/include/views/configuration.host.discovery.edit.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/ui/include/views/configuration.host.discovery.edit.php b/ui/include/views/configuration.host.discovery.edit.php
index aa08f03049c..7d7fe2672b7 100644
--- a/ui/include/views/configuration.host.discovery.edit.php
+++ b/ui/include/views/configuration.host.discovery.edit.php
@@ -24,7 +24,7 @@
* @var array $data
*/
-$widget = (new CWidget())
+$html_page = (new CHtmlPage())
->setTitle(_('Discovery rules'))
->setDocUrl(CDocHelper::getUrl(CDocHelper::DATA_COLLECTION_HOST_DISCOVERY_EDIT))
->setNavigation(getHostNavigation('discoveries', $data['hostid'],
@@ -38,7 +38,7 @@ $url = (new CUrl('host_discovery.php'))
$form = (new CForm('post', $url))
->setId('host-discovery-form')
->setName('itemForm')
- ->setAttribute('aria-labelledby', ZBX_STYLE_PAGE_TITLE)
+ ->setAttribute('aria-labelledby', CHtmlPage::PAGE_TITLE_ID)
->addVar('form', $data['form'])
->addVar('hostid', $data['hostid'])
->addVar('backurl', $data['backurl']);
@@ -1021,11 +1021,11 @@ else {
$tab->setFooter(new CFormGrid($form_actions));
$form->addItem($tab);
-$widget->addItem($form);
+$html_page->addItem($form);
require_once __DIR__.'/js/configuration.host.discovery.edit.js.php';
-$widget->show();
+$html_page->show();
(new CScriptTag('
item_form.init('.json_encode([