mirror of
https://github.com/stylersnico/librenms.git
synced 2026-07-27 16:08:55 +02:00
Fix for #1542 - sprintf default_zoom to not allow x.y values
This commit is contained in:
@@ -31,7 +31,7 @@ if ($config['map']['engine'] == 'leaflet') {
|
||||
<script>
|
||||
<?php
|
||||
|
||||
$map_init = "[" . $config['leaflet']['default_lat'] . ", " . $config['leaflet']['default_lng'] . "], " . $config['leaflet']['default_zoom'];
|
||||
$map_init = "[" . $config['leaflet']['default_lat'] . ", " . $config['leaflet']['default_lng'] . "], " . sprintf("%01.0f", $config['leaflet']['default_zoom']);
|
||||
|
||||
?>
|
||||
var map = L.map('leaflet-map').setView(<?php echo $map_init; ?>);
|
||||
|
||||
Reference in New Issue
Block a user