Changeset 39841 in spip-zone for _plugins_/twidget/action/twidget.php


Ignore:
Timestamp:
Aug 15, 2010, 1:59:59 PM (9 years ago)
Author:
cedric@…
Message:

l'url de search est devenue search.twitter.com, reparons le proxy
+ passage a la version 2.2.2 du js, avec les remplacements en commentaire pour la prochaine version

File:
1 edited

Legend:

Unmodified
Added
Removed
  • _plugins_/twidget/action/twidget.php

    r39160 r39841  
    1111        $url = $_SERVER['QUERY_STRING'];
    1212        $url = preg_replace(",^action=twidget&w=,","",$url);
    13         $url = "http://www.twitter.com/".$url;
     13        $sd = "";
     14        if (strncmp($url,'search',6)==0)
     15                $sd = "search.";
     16        $url = "http://{$sd}twitter.com/".$url;
    1417
    1518        echo twidget_get_cached_url($url);
Note: See TracChangeset for help on using the changeset viewer.