projects
/
Pman.Core
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
4303ffa
)
DataObjects/Images.php
author
Chris
<chris@roojs.com>
Wed, 29 Jan 2014 10:17:52 +0000
(18:17 +0800)
committer
Chris
<chris@roojs.com>
Wed, 29 Jan 2014 10:17:52 +0000
(18:17 +0800)
DataObjects/Images.php
patch
|
blob
|
history
diff --git
a/DataObjects/Images.php
b/DataObjects/Images.php
index
eba3b58
..
063c6c0
100644
(file)
--- a/
DataObjects/Images.php
+++ b/
DataObjects/Images.php
@@
-500,12
+500,17
@@
class Pman_Core_DataObjects_Images extends DB_DataObject
/**
*
- *
+ *
#2142 [new] CMS - image link urls
*
*
*
*/
-
+ function toLinkHTML($size, $provider = '/Images/Thumb')
+ {
+ if(empty($this->linkurl)){
+ return $this->toHTML($size, $provider = '/Images/Thumb');
+ }
+ }
/**