projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
4c8117b
)
ConvertStyle.php
author
Edward
<edward@roojs.com>
Thu, 20 Feb 2014 11:13:35 +0000
(19:13 +0800)
committer
Edward
<edward@roojs.com>
Thu, 20 Feb 2014 11:13:35 +0000
(19:13 +0800)
ConvertStyle.php
patch
|
blob
|
history
diff --git
a/ConvertStyle.php
b/ConvertStyle.php
index
d7738e2
..
ef64495
100644
(file)
--- a/
ConvertStyle.php
+++ b/
ConvertStyle.php
@@
-62,9
+62,9
@@
class Pman_Core_ConvertStyle extends Pman
var $styleSheets = array();
var $styleSheets = array();
- function convertStyle($url
= '', $file = false, $is_externa
l = true)
+ function convertStyle($url
, $file, $is_ur
l = true)
{
{
- if(!empty($url))
+ if(
$is_url &&
!empty($url))
{
$host = parse_url($url);
require_once 'System.php';
{
$host = parse_url($url);
require_once 'System.php';
@@
-82,7
+82,7
@@
class Pman_Core_ConvertStyle extends Pman
}
}
}
}
- if(!
empty($file)
){
+ if(!
$is_url
){
$data = file_get_contents($file);
}
$data = file_get_contents($file);
}
@@
-100,9
+100,7
@@
class Pman_Core_ConvertStyle extends Pman
$img->setAttribute('src', $this->relPath($url, $href));
continue;
}
$img->setAttribute('src', $this->relPath($url, $href));
continue;
}
- if($is_external){
- $this->jerr('Please use the absolutely url for image src!');
- }
+ $this->jerr('Please use the absolutely url for image src!');
}
}
}
}