Changeset 62400 in spip-zone


Ignore:
Timestamp:
Jun 11, 2012, 9:35:11 PM (7 years ago)
Author:
cedric@…
Message:

reperer les urls courtes

File:
1 edited

Legend:

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

    r62399 r62400  
    9191        if (isset($cache[$url])) return $cache[$url];
    9292
     93        if (preg_match(",^http://(?:www\.)?spip-contrib\.net/(\d+)$,",$url,$m)){
     94                return $cache[$url] = intval($m[1]);
     95        }
     96
    9397        #var_dump($url);
    9498        list($fond,$contexte,$url_redirect) = urls_decoder_url($url);
Note: See TracChangeset for help on using the changeset viewer.