<?php
/***************************************************************************
- * Copyright (C) 2003-2007 Polytechnique.org *
+ * Copyright (C) 2003-2008 Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
$set = new UserSet();
$set->addMod('geoloc', 'Geolocalisation', true);
- $set->apply('geoloc', $page, 'geoloc', $action);
+ $set->apply('geoloc', $page, $action, $subaction);
}
function handler_admin(&$page, $action = false) {
}
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') {