projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
f177702
)
ConvertStyle.php
author
Edward
<edward@roojs.com>
Wed, 19 Feb 2014 10:22:49 +0000
(18:22 +0800)
committer
Edward
<edward@roojs.com>
Wed, 19 Feb 2014 10:22:49 +0000
(18:22 +0800)
ConvertStyle.php
patch
|
blob
|
history
diff --git
a/ConvertStyle.php
b/ConvertStyle.php
index
be0def9
..
919decb
100644
(file)
--- 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)){
$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);
}
$this->styleSheets[$href] = $this->replaceImageUrl(file_get_contents($href),$href);