projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
0d54ac7
)
Images.php
author
Alan
<alan@roojs.com>
Mon, 10 Jan 2022 06:56:24 +0000
(14:56 +0800)
committer
Alan
<alan@roojs.com>
Mon, 10 Jan 2022 06:56:24 +0000
(14:56 +0800)
Images.php
patch
|
blob
|
history
diff --git
a/Images.php
b/Images.php
index
9b23f39
..
11c8659
100644
(file)
--- a/
Images.php
+++ b/
Images.php
@@
-533,12
+533,13
@@
class Pman_Core_Images extends Pman
}
- static $image = 1;
+
static function replaceDataUrl($baseURL, $img, $obj)
{
$d = DB_DataObject::Factory('Images');
$d->object($obj);
- $d->filename = 'image-'. self::$image++;
+
+
$d->createFromData($img->getAttribute('src'));
$img->setAttribute('src', $d->URL(-1, 'Images' , $baseURL));
}