From: Edward Date: Wed, 19 Feb 2014 10:22:49 +0000 (+0800) Subject: ConvertStyle.php X-Git-Url: http://git.roojs.org/?p=Pman.Core;a=commitdiff_plain;h=56e1c76adc95e4994f2a579e046f307c766da730 ConvertStyle.php --- 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);