projects
/
platal.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
$page is not anymore a global variable.
[platal.git]
/
modules
/
geoloc.php
diff --git
a/modules/geoloc.php
b/modules/geoloc.php
index
86bfbc9
..
895c5f4
100644
(file)
--- a/
modules/geoloc.php
+++ b/
modules/geoloc.php
@@
-56,7
+56,7
@@
class GeolocModule extends PLModule
}
if ($nb_synchro)
}
if ($nb_synchro)
- $page->trig(($nb_synchro > 1)?($nb_synchro." villes ont été synchronisées"):"Une ville a été synchronisée");
+ $page->trig
Success
(($nb_synchro > 1)?($nb_synchro." villes ont été synchronisées"):"Une ville a été synchronisée");
$res = XDB::query("SELECT COUNT(*) FROM geoloc_city WHERE lat = 0 AND lon = 0");
$page->assign("nb_missinglat", $res->fetchOneCell());
$res = XDB::query("SELECT COUNT(*) FROM geoloc_city WHERE lat = 0 AND lon = 0");
$page->assign("nb_missinglat", $res->fetchOneCell());
@@
-68,7
+68,7
@@
class GeolocModule extends PLModule
if ($action == 'cities_not_on_map') {
require_once('geoloc.inc.php');
if (!fix_cities_not_on_map(20))
if ($action == 'cities_not_on_map') {
require_once('geoloc.inc.php');
if (!fix_cities_not_on_map(20))
- $page->trig("Impossible d'accéder au webservice");
+ $page->trig
Error
("Impossible d'accéder au webservice");
else
$refresh = true;
}
else
$refresh = true;
}
@@
-87,7
+87,7
@@
class GeolocModule extends PLModule
if ($action == 'newmaps') {
require_once('geoloc.inc.php');
if (!get_new_maps(Env::v('url')))
if ($action == 'newmaps') {
require_once('geoloc.inc.php');
if (!get_new_maps(Env::v('url')))
- $page->trig("Impossible d'accéder aux nouvelles cartes");
+ $page->trig
Error
("Impossible d'accéder aux nouvelles cartes");
}
$countMissing = XDB::query("SELECT COUNT(*) FROM geoloc_city AS c LEFT JOIN geoloc_city_in_maps AS m ON(c.id = m.city_id) WHERE m.city_id IS NULL");
}
$countMissing = XDB::query("SELECT COUNT(*) FROM geoloc_city AS c LEFT JOIN geoloc_city_in_maps AS m ON(c.id = m.city_id) WHERE m.city_id IS NULL");