Browse Source

la methode par defaut est atomrss qui sait syndiquer du Atom et du RSS a partir d'un flux http/https (ne melangeons pas le format et le protocole)

svn/root/tags/plugins/sites/2.0.1
cedric@yterium.com 3 years ago
parent
commit
76b652f8ea
4 changed files with 5 additions and 5 deletions
  1. +1
    -1
      .gitattributes
  2. +1
    -1
      genie/syndic.php
  3. +1
    -1
      inc/syndic.php
  4. +2
    -2
      syndic/atomrss.php

+ 1
- 1
.gitattributes View File

@ -172,4 +172,4 @@ puce_statut/site.php -text
/sites_fonctions.php -text
/sites_ieconfig.php -text
/sites_pipelines.php -text
syndic/http.php -text
syndic/atomrss.php -text

+ 1
- 1
genie/syndic.php View File

@ -134,7 +134,7 @@ function syndic_a_jour($now_id_syndic) {
sql_updateq('spip_syndic', array('syndication' => $statut, 'date_syndic' => date('Y-m-d H:i:s')),
"id_syndic=" . intval($now_id_syndic));
$methode_syndication = 'http';
$methode_syndication = 'atomrss';
$syndic = charger_fonction($methode_syndication, 'syndic');
$items = $syndic($url_syndic);


+ 1
- 1
inc/syndic.php View File

@ -26,5 +26,5 @@ if (!defined("_ECRIRE_INC_VERSION")) {
// il faut passer par cron() pour avoir un verrou portable
// Voir un exemple dans action/editer/site
include_spip('genie/syndic');
include_spip('syndic/http');
include_spip('syndic/atomrss');

syndic/http.php → syndic/atomrss.php View File


Loading…
Cancel
Save