Changeset 182

Show
Ignore:
Timestamp:
06/18/08 20:21:02 (7 months ago)
Author:
llaumgui
Message:
 
Location:
ez_publish/myutils/trunk
Files:
2 modified

Legend:

Unmodified
Added
Removed
  • ez_publish/myutils/trunk/classes/myutilsfunction.php

    r181 r182  
    5252                } 
    5353                $str = $tidy; 
     54        } 
     55 
     56         
     57         
     58        /** 
     59         * Permet de nettoyer le champ "description" d'un flux RSS 
     60         * 
     61         * @param string $str 
     62         */ 
     63        static function cleanRSSDescription( &$str ) { 
     64                 
     65                $str = preg_replace( '#<img src="/(.+?)" alt="(.?)" />#is',  '', $str );         
    5466        } 
    5567 
  • ez_publish/myutils/trunk/cronjobs/planet.php

    r181 r182  
    559559{ 
    560560        myUtilsFunctions::cleanTidy( $attributeValue ); 
    561          
    562         /* Liens relatifs dans un flux RSS ! */ 
    563         $attributeValue = preg_replace( '#<img src="/(.+?)" alt="(.?)" />#is',  '', $attributeValue );   
     561        myUtilsFunctions::cleanRSSDescription( $attributeValue ); 
    564562         
    565563        /* Et hop ! Dans eZ */