| @@ 102-107 (lines=6) @@ | ||
| 99 | return $this->getParentModel()->asa('imagesBehavior')->getImage($type);
|
|
| 100 | } |
|
| 101 | } |
|
| 102 | else if( $this->isParent() ) |
|
| 103 | {
|
|
| 104 | $modification = $this->getFirstModification(); |
|
| 105 | if( !empty($modification->asa('imagesBehavior')->getImage($type)->name) )
|
|
| 106 | return $modification->asa('imagesBehavior')->getImage($type);
|
|
| 107 | } |
|
| 108 | ||
| 109 | return $this->owner->asa('imagesBehavior')->getImage($type);
|
|
| 110 | } |
|
| @@ 127-133 (lines=7) @@ | ||
| 124 | return $images; |
|
| 125 | } |
|
| 126 | } |
|
| 127 | else if( $this->isParent() ) |
|
| 128 | {
|
|
| 129 | $modification = $this->getFirstModification(); |
|
| 130 | $images = $modification->asa('imagesBehavior')->getImages($type);
|
|
| 131 | if( !empty($images) ) |
|
| 132 | return $images; |
|
| 133 | } |
|
| 134 | ||
| 135 | return $this->owner->asa('imagesBehavior')->getImages($type);
|
|
| 136 | } |
|