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.list.php')
-rw-r--r--ui/include/views/configuration.host.list.php13
1 files changed, 6 insertions, 7 deletions
diff --git a/ui/include/views/configuration.host.list.php b/ui/include/views/configuration.host.list.php
index 92fbecbc611..b8df73cc781 100644
--- a/ui/include/views/configuration.host.list.php
+++ b/ui/include/views/configuration.host.list.php
@@ -468,13 +468,12 @@ $form->addItem([
[
'host.massenable' => ['name' => _('Enable'), 'confirm' => _('Enable selected hosts?')],
'host.massdisable' => ['name' => _('Disable'), 'confirm' => _('Disable selected hosts?')],
- 'host.export' => ['name' => _('Export'), 'redirect' =>
- (new CUrl('zabbix.php'))
- ->setArgument('action', 'export.hosts.xml')
- ->setArgument('backurl', (new CUrl('hosts.php'))
- ->setArgument('page', $data['page'] == 1 ? null : $data['page'])
- ->getUrl())
- ->getUrl()
+ 'host.export' => [
+ 'content' => new CButtonExport('export.hosts',
+ (new CUrl('hosts.php'))
+ ->setArgument('page', ($data['page'] == 1) ? null : $data['page'])
+ ->getUrl()
+ )
],
'host.massupdateform' => ['name' => _('Mass update')],
'host.massdelete' => ['name' => _('Delete'), 'confirm' => _('Delete selected hosts?')]