mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
Misc webui code cleanups (#14242)
* Misc webui cleanups * Style * More * graphing fixes * More graph cleanups * more fixes, graphs and device pages * style
This commit is contained in:
@@ -95,7 +95,7 @@ class Url
|
||||
}
|
||||
|
||||
if ($device->location_id) {
|
||||
$contents .= ' - ' . htmlentities($device->location);
|
||||
$contents .= ' - ' . htmlentities($device->location ?? '');
|
||||
}
|
||||
|
||||
$contents .= '</div>';
|
||||
@@ -332,7 +332,7 @@ class Url
|
||||
{
|
||||
$urlargs = [];
|
||||
foreach ($args as $key => $arg) {
|
||||
$urlargs[] = $key . '=' . urlencode($arg);
|
||||
$urlargs[] = $key . '=' . ($arg === null ? '' : urlencode($arg));
|
||||
}
|
||||
|
||||
return '<img src="' . url('graph.php') . '?' . implode('&', $urlargs) . '" style="border:0;" />';
|
||||
@@ -372,7 +372,7 @@ class Url
|
||||
$urlargs = [];
|
||||
|
||||
foreach ($args as $key => $arg) {
|
||||
$urlargs[] = $key . '=' . urlencode($arg);
|
||||
$urlargs[] = $key . '=' . ($arg === null ? '' : urlencode($arg));
|
||||
}
|
||||
|
||||
$tag = '<img class="img-responsive" src="' . url('graph.php') . '?' . implode('&', $urlargs) . '" style="border:0;"';
|
||||
|
Reference in New Issue
Block a user