Commit 89fac7e6f4eb5488b0849595d3ea4edfb3a7b03c
1 parent
93390083
Another one admin fix
Showing
1 changed file
with
10 additions
and
0 deletions
Show diff stats
common/behaviors/MultipleImgBehavior.php
... | ... | @@ -113,4 +113,14 @@ |
113 | 113 | } |
114 | 114 | return $op; |
115 | 115 | } |
116 | + | |
117 | + public function getImageUrl() | |
118 | + { | |
119 | + $image = $this->getImage()->one(); | |
120 | + if(!empty($image)) { | |
121 | + return $image->getImageUrl(); | |
122 | + } else { | |
123 | + return NULL; | |
124 | + } | |
125 | + } | |
116 | 126 | } |
117 | 127 | \ No newline at end of file | ... | ... |