projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Group managers can change the visibility of the group (Closes #814)
[platal.git]
/
modules
/
geoloc.php
diff --git
a/modules/geoloc.php
b/modules/geoloc.php
index
e276e1f
..
86bfbc9
100644
(file)
--- a/
modules/geoloc.php
+++ b/
modules/geoloc.php
@@
-1,6
+1,6
@@
<?php
/***************************************************************************
<?php
/***************************************************************************
- * Copyright (C) 2003-200
7
Polytechnique.org *
+ * Copyright (C) 2003-200
8
Polytechnique.org *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
* http://opensource.polytechnique.org/ *
* *
* This program is free software; you can redistribute it and/or modify *
@@
-36,7
+36,7
@@
class GeolocModule extends PLModule
$set = new UserSet();
$set->addMod('geoloc', 'Geolocalisation', true);
$set = new UserSet();
$set->addMod('geoloc', 'Geolocalisation', true);
- $set->apply('geoloc', $page,
'geoloc', $
action);
+ $set->apply('geoloc', $page,
$action, $sub
action);
}
function handler_admin(&$page, $action = false) {
}
function handler_admin(&$page, $action = false) {
@@
-79,7
+79,9
@@
class GeolocModule extends PLModule
}
if ($action == 'precise_coordinates') {
}
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') {
}
if ($action == 'newmaps') {