@@ 208-214 (lines=7) @@ | ||
205 | $errors['destination'] = __('The destination directory, %s, does not exist.', array( |
|
206 | '<code>' . $this->get('destination') . '</code>' |
|
207 | )); |
|
208 | } elseif (is_writable(DOCROOT . $this->get('destination') . '/') === false) { |
|
209 | $errors['destination'] = __('The destination directory is not writable.') |
|
210 | . ' ' |
|
211 | . __('Please check permissions on %s.', array( |
|
212 | '<code>' . $this->get('destination') . '</code>' |
|
213 | )); |
|
214 | } |
|
215 | ||
216 | parent::checkFields($errors, $checkForDuplicates); |
|
217 | } |
|
@@ 249-255 (lines=7) @@ | ||
246 | $flagWithError = __('The destination directory, %s, does not exist.', array( |
|
247 | '<code>' . $this->get('destination') . '</code>' |
|
248 | )); |
|
249 | } elseif ($flagWithError && is_writable(DOCROOT . $this->get('destination') . '/') === false) { |
|
250 | $flagWithError = __('Destination folder is not writable.') |
|
251 | . ' ' |
|
252 | . __('Please check permissions on %s.', array( |
|
253 | '<code>' . $this->get('destination') . '</code>' |
|
254 | )); |
|
255 | } |
|
256 | ||
257 | $label = Widget::Label($this->get('label')); |
|
258 | $label->setAttribute('class', 'file'); |
|
@@ 364-372 (lines=9) @@ | ||
361 | )); |
|
362 | ||
363 | return self::__ERROR__; |
|
364 | } elseif (is_writable(DOCROOT . $this->get('destination') . '/') === false) { |
|
365 | $message = __('Destination folder is not writable.') |
|
366 | . ' ' |
|
367 | . __('Please check permissions on %s.', array( |
|
368 | '<code>' . $this->get('destination') . '</code>' |
|
369 | )); |
|
370 | ||
371 | return self::__ERROR__; |
|
372 | } |
|
373 | ||
374 | if ($data['error'] != UPLOAD_ERR_NO_FILE && $data['error'] != UPLOAD_ERR_OK) { |
|
375 | switch ($data['error']) { |