Browse Source

Utiliser recuperer_url()

master v2.2.1
Matthieu Marcillaud 8 months ago
parent
commit
f1e8aec59e
  1. 3
      nospam_pipelines.php

3
nospam_pipelines.php

@ -442,7 +442,8 @@ function nospam_update_ip_list($async = false) {
$url_api = "http://nospam.spip.net/spamsignal.api/list";
include_spip("inc/distant");
include_spip("inc/json");
$res = recuperer_page($url_api);
$res = recuperer_url($url_api);
$res = isset($res['page']) ? $res['page'] : null;
if (!$res AND file_exists($f = _DIR_TMP . "spamsignal-api-list.txt"))
lire_fichier($f, $res);
if ($res

Loading…
Cancel
Save