From 56e1c76adc95e4994f2a579e046f307c766da730 Mon Sep 17 00:00:00 2001 From: Edward Date: Wed, 19 Feb 2014 18:22:49 +0800 Subject: [PATCH] ConvertStyle.php --- ConvertStyle.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/ConvertStyle.php b/ConvertStyle.php index be0def9f..919decbb 100644 --- a/ConvertStyle.php +++ b/ConvertStyle.php @@ -120,10 +120,10 @@ class Pman_Core_ConvertStyle extends Pman $href = $l->getAttribute('href'); if(!preg_match("/^http(.*)$/", $href, $matches)){ - if(!empty($url)){ - $href = $this->relPath($url, $href); + if(empty($url)){ + $this->jerr('Please use the absolutely url for link href!'); } - $this->jerr('Please use the absolutely url for link href!'); + $href = $this->relPath($url, $href); } $this->styleSheets[$href] = $this->replaceImageUrl(file_get_contents($href),$href); -- 2.39.2