fix wrong string concatenation
This commit is contained in:
parent
c2d6e9adcf
commit
2a706411cf
@ -207,11 +207,11 @@ class FileUpload
|
|||||||
setEventMessage('If $fk_element = null or $element = null you must specify upload_dir on $options', 'errors');
|
setEventMessage('If $fk_element = null or $element = null you must specify upload_dir on $options', 'errors');
|
||||||
throw new Exception('If $fk_element = null or $element = null you must specify upload_dir on $options');
|
throw new Exception('If $fk_element = null or $element = null you must specify upload_dir on $options');
|
||||||
} elseif (is_dir($this->options['upload_dir'])) {
|
} elseif (is_dir($this->options['upload_dir'])) {
|
||||||
setEventMessage('The directory '$this->options['upload_dir'].' doesn\'t exists', 'errors');
|
setEventMessage('The directory '.$this->options['upload_dir'].' doesn\'t exists', 'errors');
|
||||||
throw new Exception('The directory '$this->options['upload_dir'].' doesn\'t exists');
|
throw new Exception('The directory '.$this->options['upload_dir'].' doesn\'t exists');
|
||||||
} elseif (is_writable($this->options['upload_dir'])) {
|
} elseif (is_writable($this->options['upload_dir'])) {
|
||||||
setEventMessage('The directory '$this->options['upload_dir'].' is not writable', 'errors');
|
setEventMessage('The directory '.$this->options['upload_dir'].' is not writable', 'errors');
|
||||||
throw new Exception('The directory '$this->options['upload_dir'].' is not writable');
|
throw new Exception('The directory '.$this->options['upload_dir'].' is not writable');
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user