Browse Source

lire_config() au lieu de unserialize($GLOBALS['meta']['gis'])

pull/41/head
b_b 6 months ago committed by Gitea
parent
commit
cd0c39635b
  1. 5
      gis_pipelines.php

5
gis_pipelines.php

@ -99,10 +99,7 @@ function gis_post_edition($flux) {
and (in_array(table_objet_sql('document'), lire_config('gis/gis_objets', [])))
) {
if (in_array($document['extension'], ['jpg', 'kml', 'kmz'])) {
$config = @unserialize($GLOBALS['meta']['gis']);
if (!is_array($config)) {
$config = [];
}
$config = lire_config('gis', []);
include_spip('inc/documents');
$fichier = get_spip_doc($document['fichier']);

Loading…
Cancel
Save