Changeset 107729 in spip-zone
- Timestamp:
- Nov 24, 2017, 4:59:39 PM (3 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/convertisseur/trunk/spip-cli/convertisseurImporter.php
r107728 r107729 207 207 // sql_update spip_articles id_article=$id_source 208 208 if($conserver_id_article == "oui" and $id_source > 0){ 209 // var_dump($id_article . " est " . $id_source);210 209 sql_update("spip_articles", array("id_article" => $id_source), "id_article=$id_article") ; 211 // s'ajouter en auteur en spip 2 ou 3210 // maj le lien auteur admin 212 211 if($spip_version_branche > "3") 213 212 sql_update('spip_auteurs_liens', … … 215 214 'id_objet' => $id_source 216 215 ), 217 " id_objet='article' and id_objet=$id_source"216 "objet='article' and id_objet=$id_article" 218 217 ); 219 218 else … … 226 225 $id_article = $id_source ; 227 226 } 228 229 227 // Créer l'auteur ? 230 228 if($auteurs){ … … 352 350 // si on ne conserve pas le meme id_article 353 351 include_spip("inc/lien"); 354 if(preg_match(_RACCOURCI_LIEN, $texte) )352 if(preg_match(_RACCOURCI_LIEN, $texte) and $conserver_id_article == "") 355 353 passthru("echo '$id_article $id_source' >> liens_a_corriger.txt"); 356 354
Note: See TracChangeset
for help on using the changeset viewer.