projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
fcc398f
)
Images.php
author
Alan Knowles
<alan@roojs.com>
Wed, 23 May 2012 01:21:36 +0000
(09:21 +0800)
committer
Alan Knowles
<alan@roojs.com>
Wed, 23 May 2012 01:21:36 +0000
(09:21 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
562ada8
..
12ee2f9
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-219,9
+219,11
@@
class Pman_Core_Images extends Pman
preg_match_all('/(width|height|src)=("[^"]*")/i',$img, $imatch);
// build a keymap
$attr = array();
+
foreach($imatch[1] as $i=>$key) {
- $attr[$key] = $imatch[2][$
key
];
+ $attr[$key] = $imatch[2][$
i
];
}
+ print_R($attr);
// see if it's an image url..
// Images/{ID}/fullname.xxxx
// Images/Thumb/200/{ID}/fullname.xxxx