Exemple #1
0
 public static function updateUrl($css, $src)
 {
     self::$srcurl = $src;
     $css = preg_replace_callback('/@import\\s+([\'"])(.*?)[\'"]/', array('T3Path', 'replaceurl'), $css);
     $css = preg_replace_callback('/url\\(\\s*([^\\)\\s]+)\\s*\\)/', array('T3Path', 'replaceurl'), $css);
     return $css;
 }