Changeset 95624 in spip-zone


Ignore:
Timestamp:
Feb 29, 2016, 5:26:38 PM (4 years ago)
Author:
ben.spip@…
Message:

Un peu de logs

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _galaxie_/www.spip-contrib.net/squelettes/2012/genie/synchro_plugins.php

    r87964 r95624  
    151151
    152152        if (preg_match(",^http://(?:www\.|spip-)?(?:spip-)?contrib(?:\.spip)?\.net/(\d+)$,",$url,$m)){
     153        spip_log(__LINE__  ,"synchroplugins"._LOG_INFO_IMPORTANTE);
    153154                return $cache[$url] = intval($m[1]);
    154155        }
     
    156157        //var_dump(urls_decoder_url($url));
    157158        list($fond,$contexte,$url_redirect) = urls_decoder_url($url);
     159        spip_log(__LINE__ ."$fond $contexte $url_redirect " ,"synchroplugins"._LOG_INFO_IMPORTANTE);
    158160        if ($fond=='rubrique' AND $id_rubrique=$contexte['id_rubrique']){
    159161                // chercher si un seul article
     162        spip_log(__LINE__  ,"synchroplugins"._LOG_INFO_IMPORTANTE);
    160163                $a = sql_allfetsel('id_article','spip_articles','id_rubrique='.intval($id_rubrique)." AND statut='publie'");
    161164                if (count($a)==1){
     165        spip_log(__LINE__  ,"synchroplugins"._LOG_INFO_IMPORTANTE);
    162166                        $a = reset($a);
    163167                        spip_log("$url => ".reset($a),"synchroplugins"._LOG_INFO_IMPORTANTE);
Note: See TracChangeset for help on using the changeset viewer.