X-Git-Url: http://git.polytechnique.org/?a=blobdiff_plain;f=modules%2Fgeoloc.php;h=86bfbc929175fe227077619dbfdc4d6fa5452fcd;hb=39337e2d8e5357597a6e14a5e0ba91521f1e2c21;hp=e276e1fc22979c8bced113a32cc6dc9a8733acce;hpb=30390dd6e5f2fcbb5ca53d2de8b2d928ca0b22a9;p=platal.git diff --git a/modules/geoloc.php b/modules/geoloc.php index e276e1f..86bfbc9 100644 --- a/modules/geoloc.php +++ b/modules/geoloc.php @@ -1,6 +1,6 @@ addMod('geoloc', 'Geolocalisation', true); - $set->apply('geoloc', $page, 'geoloc', $action); + $set->apply('geoloc', $page, $action, $subaction); } function handler_admin(&$page, $action = false) { @@ -79,7 +79,9 @@ class GeolocModule extends PLModule } if ($action == 'precise_coordinates') { - XDB::execute("UPDATE adresses AS a INNER JOIN geoloc_city AS c ON(a.cityid = c.id) SET a.glat = c.lat / 100000, a.glng = c.lon / 100000"); + XDB::execute("UPDATE adresses AS a + INNER JOIN geoloc_city AS c ON(a.cityid = c.id) + SET a.glat = c.lat / 100000, a.glng = c.lon / 100000"); } if ($action == 'newmaps') {