diff --git a/inc/territoire.php b/inc/territoire.php index 4574f23..13f27f3 100644 --- a/inc/territoire.php +++ b/inc/territoire.php @@ -129,7 +129,7 @@ function territoire_peupler($type, $pays, $options = array()) { $territoire['edite'] = 'oui'; } - if ($id = objet_inserer('territoire', null, $territoire)) { + if ($id = sql_insertq('spip_territoires', $territoire)) { // On consigne le couple (iso, id) pour rétablir les liens si besoin $ids[$territoire['iso_territoire']] = $id; @@ -229,9 +229,9 @@ function territoire_peupler($type, $pays, $options = array()) { // Log du traitement pour debug $duree = $timestamp['fin'] - $timestamp['debut']; - spip_log("Les territoires (Type '${type}' - Pays '${pays}') ont été chargées en ${duree} s", 'territoires' . _LOG_DEBUG); + spip_log("Les territoires (Type '${type}' - Pays '${pays}') ont été chargées en ${duree} s", 'territoires' . _LOG_INFO_IMPORTANTE); if ( - defined(_LOG_FILTRE_GRAVITE) + defined('_LOG_FILTRE_GRAVITE') and (_LOG_FILTRE_GRAVITE >= _LOG_DEBUG) ) { $timestamp_debut = $timestamp['debut']; diff --git a/prive/objets/liste/territoires.html b/prive/objets/liste/territoires.html index 5f069fd..1ed0d70 100644 --- a/prive/objets/liste/territoires.html +++ b/prive/objets/liste/territoires.html @@ -14,7 +14,10 @@