projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
|
inline
| side by side (parent:
cef2df5
)
ConvertStyle.php
author
Edward
<edward@roojs.com>
Wed, 19 Feb 2014 09:12:00 +0000
(17:12 +0800)
committer
Edward
<edward@roojs.com>
Wed, 19 Feb 2014 09:12:00 +0000
(17:12 +0800)
ConvertStyle.php
patch
|
blob
|
history
diff --git
a/ConvertStyle.php
b/ConvertStyle.php
index
605da64
..
bf5becb
100644
(file)
--- a/
ConvertStyle.php
+++ b/
ConvertStyle.php
@@
-62,7
+62,7
@@
class Pman_Core_ConvertStyle extends Pman
var $styleSheets = array();
var $styleSheets = array();
- function convertStyle($base, $
data
, $is_url = false)
+ function convertStyle($base, $
path
, $is_url = false)
{
// if(!empty($url))
// {
{
// if(!empty($url))
// {
@@
-82,11
+82,11
@@
class Pman_Core_ConvertStyle extends Pman
// }
// }
// }
// }
- if(file_exists($file))
- {
- $data = file_get_contents($file);
+ if(!$is_url){
+ $data = file_get_contents($path);
}
}
+
libxml_use_internal_errors (true);
$doc = new DOMDocument('1.0', 'UTF-8');
$doc->loadHTML('<?xml encoding="UTF-8">'.$data);
libxml_use_internal_errors (true);
$doc = new DOMDocument('1.0', 'UTF-8');
$doc->loadHTML('<?xml encoding="UTF-8">'.$data);