@@ 33-42 (lines=10) @@ | ||
30 | ||
31 | if (!empty($this->value['pic_id'])) { |
|
32 | $filemanager = new FileHandler($this->section->kernel, $this->get('pic_id')); |
|
33 | if ($filemanager->get('id') > 0) { |
|
34 | if ($size == 'original') { |
|
35 | $this->value['picture'] = $filemanager->get(); |
|
36 | } else { |
|
37 | $filemanager->createInstance($size); |
|
38 | $this->value['picture'] = $filemanager->instance->get(); |
|
39 | } |
|
40 | } |
|
41 | } |
|
42 | } |
|
43 | ||
44 | function validate_element($var) |
|
45 | { |
@@ 34-43 (lines=10) @@ | ||
31 | ||
32 | $filemanager = new FileHandler($this->cmspage->kernel, $this->value['pic_id']); |
|
33 | ||
34 | if ($filemanager->get('id') > 0) { |
|
35 | if ($size == 'original') { |
|
36 | $this->value['picture'] = $filemanager->get(); |
|
37 | } else { |
|
38 | $filemanager->createInstance($size); |
|
39 | $this->value['picture'] = $filemanager->instance->get(); |
|
40 | } |
|
41 | } |
|
42 | } |
|
43 | ||
44 | function validate_section(& $var) |
|
45 | { |
|
46 | $validator = new Intraface_Validator($this->error); |