# HG changeset patch # User Matti Hamalainen # Date 1505125518 -10800 # Node ID 585a8fb4a286eb60d5bb2011eec400f1411024c9 # Parent 2388ebb0567ba69241945986b8d0a1dbe6009550 Cleanups. diff -r 2388ebb0567b -r 585a8fb4a286 index.php --- a/index.php Sat Jun 24 00:34:38 2017 +0300 +++ b/index.php Mon Sep 11 13:25:18 2017 +0300 @@ -21,7 +21,8 @@ $dataCopyrights = "Map data by BAT ry, Ggr, Slobber and Jeskko"; -$jsLibs = array( +$jsLibs = +[ "map.js", "lib/util.js", "lib/markerwithlabel_packed.js", @@ -30,9 +31,9 @@ "icons.js", "markers.js", "nav.js", -); +]; -$jsTokens = array("x", "y", "zoom", "token", "name"); +$jsTokens = ["x", "y", "zoom", "token", "name"]; // @@ -105,9 +106,11 @@ \n"; +} -$jsData = array(); +$jsData = []; foreach ($jsTokens as $key) { if (isset($_GET[$key]) && strlen($_GET[$key]) > 0) diff -r 2388ebb0567b -r 585a8fb4a286 lib/util.js --- a/lib/util.js Sat Jun 24 00:34:38 2017 +0300 +++ b/lib/util.js Mon Sep 11 13:25:18 2017 +0300 @@ -38,7 +38,7 @@ } else if (typeof(errcallback) == "function") - errcallback(status); + errcallback(status); } }