|
@@ 194-200 (lines=7) @@
|
| 191 |
|
$errors['destination'] = __('The destination directory, %s, does not exist.', array( |
| 192 |
|
'<code>' . $this->get('destination') . '</code>' |
| 193 |
|
)); |
| 194 |
|
} elseif (is_writable(DOCROOT . $this->get('destination') . '/') === false) { |
| 195 |
|
$errors['destination'] = __('The destination directory is not writable.') |
| 196 |
|
. ' ' |
| 197 |
|
. __('Please check permissions on %s.', array( |
| 198 |
|
'<code>' . $this->get('destination') . '</code>' |
| 199 |
|
)); |
| 200 |
|
} |
| 201 |
|
|
| 202 |
|
parent::checkFields($errors, $checkForDuplicates); |
| 203 |
|
} |
|
@@ 237-243 (lines=7) @@
|
| 234 |
|
$flagWithError = __('The destination directory, %s, does not exist.', array( |
| 235 |
|
'<code>' . $this->get('destination') . '</code>' |
| 236 |
|
)); |
| 237 |
|
} elseif ($flagWithError && is_writable(DOCROOT . $this->get('destination') . '/') === false) { |
| 238 |
|
$flagWithError = __('Destination folder is not writable.') |
| 239 |
|
. ' ' |
| 240 |
|
. __('Please check permissions on %s.', array( |
| 241 |
|
'<code>' . $this->get('destination') . '</code>' |
| 242 |
|
)); |
| 243 |
|
} |
| 244 |
|
|
| 245 |
|
$label = Widget::Label($this->get('label')); |
| 246 |
|
$label->setAttribute('class', 'file'); |
|
@@ 329-337 (lines=9) @@
|
| 326 |
|
)); |
| 327 |
|
|
| 328 |
|
return self::__ERROR__; |
| 329 |
|
} elseif (is_writable(DOCROOT . $this->get('destination') . '/') === false) { |
| 330 |
|
$message = __('Destination folder is not writable.') |
| 331 |
|
. ' ' |
| 332 |
|
. __('Please check permissions on %s.', array( |
| 333 |
|
'<code>' . $this->get('destination') . '</code>' |
| 334 |
|
)); |
| 335 |
|
|
| 336 |
|
return self::__ERROR__; |
| 337 |
|
} |
| 338 |
|
|
| 339 |
|
if ($data['error'] !== UPLOAD_ERR_NO_FILE && $data['error'] !== UPLOAD_ERR_OK) { |
| 340 |
|
switch ($data['error']) { |