From f5be4fd071728e72e545060227b787c0b4974eb8 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 19 Feb 2014 17:51:01 +0800 Subject: [PATCH] ConvertStyle.php --- ConvertStyle.php | 7 ++----- 1 file changed, 2 insertions(+), 5 deletions(-) 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; -- 2.39.2