Changeset 95624 in spip-zone
- Timestamp:
- Feb 29, 2016, 5:26:38 PM (4 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
_galaxie_/www.spip-contrib.net/squelettes/2012/genie/synchro_plugins.php
r87964 r95624 151 151 152 152 if (preg_match(",^http://(?:www\.|spip-)?(?:spip-)?contrib(?:\.spip)?\.net/(\d+)$,",$url,$m)){ 153 spip_log(__LINE__ ,"synchroplugins"._LOG_INFO_IMPORTANTE); 153 154 return $cache[$url] = intval($m[1]); 154 155 } … … 156 157 //var_dump(urls_decoder_url($url)); 157 158 list($fond,$contexte,$url_redirect) = urls_decoder_url($url); 159 spip_log(__LINE__ ."$fond $contexte $url_redirect " ,"synchroplugins"._LOG_INFO_IMPORTANTE); 158 160 if ($fond=='rubrique' AND $id_rubrique=$contexte['id_rubrique']){ 159 161 // chercher si un seul article 162 spip_log(__LINE__ ,"synchroplugins"._LOG_INFO_IMPORTANTE); 160 163 $a = sql_allfetsel('id_article','spip_articles','id_rubrique='.intval($id_rubrique)." AND statut='publie'"); 161 164 if (count($a)==1){ 165 spip_log(__LINE__ ,"synchroplugins"._LOG_INFO_IMPORTANTE); 162 166 $a = reset($a); 163 167 spip_log("$url => ".reset($a),"synchroplugins"._LOG_INFO_IMPORTANTE);
Note: See TracChangeset
for help on using the changeset viewer.