Permalink
Browse files

updating metadata after publication

  • Loading branch information...
julienmru committed Mar 10, 2017
1 parent 41222c2 commit 805cf5f6247c05eb4c1c374e2d62a833c7143f73
Showing with 4 additions and 1 deletion.
  1. +1 −1 paquet.xml
  2. +3 −0 spipagram_options.php
View
@@ -1,7 +1,7 @@
<paquet
prefix="spipagram"
categorie="multimedia"
version="1.3.1"
version="1.3.2"
etat="stable"
compatibilite="[3.0.0;3.1.*]"
documentation="http://contrib.spip.net/spipagram"
View
@@ -87,7 +87,10 @@ function spipagram_import(){
if ($row = sql_fetsel('id_article', 'spip_articles', 'id_rubrique = '.$_rubrique.' AND url_site = '.sql_quote($article['url_site']))) {
$id_article = $row['id_article'];
spip_log('Article trouvé pour '.$article['url_site'].' => '.$id_article, 'spipagram'._LOG_INFO);
spip_log('Màj des données pour l’article '.$id_article, 'spipagram'._LOG_INFO);
sql_updateq('spip_articles', $article, "id_article = $id_article");
} else {
$article['statut'] = $_statut;
$id_article = article_inserer($article['id_rubrique']);
article_instituer($id_article, array('statut' => $article['statut']), true);
if ($id_article) {

0 comments on commit 805cf5f

Please sign in to comment.