Changeset 65443 in spip-zone for _plugins_/a2a/branches/type/formulaires/ajoute_a2a.php
- Timestamp:
- Sep 1, 2012, 6:32:14 PM (9 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_plugins_/a2a/branches/type/formulaires/ajoute_a2a.php
r65442 r65443 71 71 )); 72 72 } 73 if(($type == 'both') && !sql_countsel('spip_articles_lies', array( 73 if( 74 ($type == 'both') && !sql_countsel('spip_articles_lies', array( 74 75 'id_article=' . sql_quote($id_article_cible), 75 'id_article_lie=' . sql_quote($id_article_source)))){ 76 'id_article_lie=' . sql_quote($id_article_source))) 77 or 78 (($type == 'both') and !((lire_config('a2a/types_differents') 79 and 80 sql_countsel('spip_articles_lies', array( 81 'id_article=' . sql_quote($id_article_cible), 82 'id_article_lie=' . sql_quote($id_article_source),'type_Liaison='.sql_quote($type_liaison)))) 83 )) 84 ){ 76 85 //on recupere le rang le plus haut pour definir celui de l'article a lier 77 86 $rang = sql_getfetsel('MAX(rang)', 'spip_articles_lies', 'id_article='. sql_quote($id_article_cible)); 87 78 88 //on ajoute le lien vers l'article 79 89 sql_insertq('spip_articles_lies', array(
Note: See TracChangeset
for help on using the changeset viewer.