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