From: Edward Date: Wed, 19 Feb 2014 09:51:01 +0000 (+0800) Subject: ConvertStyle.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=f5be4fd071728e72e545060227b787c0b4974eb8 ConvertStyle.php --- diff --git a/ConvertStyle.php b/ConvertStyle.php index c303932b..10da366c 100644 --- a/ConvertStyle.php +++ b/ConvertStyle.php @@ -62,7 +62,7 @@ class Pman_Core_ConvertStyle extends Pman var $styleSheets = array(); - function convertStyle($base, $path, $is_url = false) + function convertStyle($url, $file, $is_url = false) { // if(!empty($url)) // { @@ -134,10 +134,7 @@ class Pman_Core_ConvertStyle extends Pman // } foreach ($xpath->query('//style') as $s){ -// $ss = $doc->saveHTML($s); - print_r($s->nodeValue); -// $this->styleSheets[] = $this->$this->replaceImageUrl($s) - echo '
'; + $this->styleSheets[] = $this->$this->replaceImageUrl($s->nodeValue, $url); } exit;