summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/pages
diff options
context:
space:
mode:
authorSimon Rettberg2022-06-03 09:33:52 +0200
committerSimon Rettberg2022-06-03 09:33:52 +0200
commitd6645ceb409cda648467c26df3d6bb2150da911b (patch)
tree595a1e233a768a4c5753ce003fc5e9c4ed911411 /modules-available/statistics/pages
parentinstall.php: Quote table and column names (diff)
downloadslx-admin-d6645ceb409cda648467c26df3d6bb2150da911b.tar.gz
slx-admin-d6645ceb409cda648467c26df3d6bb2150da911b.tar.xz
slx-admin-d6645ceb409cda648467c26df3d6bb2150da911b.zip
[statistics] Use hostname/ip as page title in client details
Diffstat (limited to 'modules-available/statistics/pages')
-rw-r--r--modules-available/statistics/pages/machine.inc.php1
1 files changed, 1 insertions, 0 deletions
diff --git a/modules-available/statistics/pages/machine.inc.php b/modules-available/statistics/pages/machine.inc.php
index 0bf6f8fb..5bf5ec97 100644
--- a/modules-available/statistics/pages/machine.inc.php
+++ b/modules-available/statistics/pages/machine.inc.php
@@ -61,6 +61,7 @@ class SubPage
Message::addError('unknown-machine', $uuid);
return;
}
+ Render::setTitle(empty($client['hostname']) ? $client['clientip'] : $client['hostname']);
$locations = [];
if ($client['locationid'] > 0 && Module::isAvailable('locations')) {
if (!Location::isLeaf($client['locationid'])) {