Commit 28e79a33 authored by Shakarim Sapa's avatar Shakarim Sapa

- Поставлена заглушка на загрузку файлов

parent 5485e6a9
......@@ -51,9 +51,13 @@ class AnalyticsSchoolCourse extends \common\components\ActiveRecordModel
return false;
$this->uploadedImage = UploadedFile::getInstance($this, 'uploadedImage');
if ($this->validate('uploadedImage')) {
if (!is_null($this->uploadedImage)) {
if ($this->validate('uploadedImage')) {
$this->addError('uploadedImage', 'Загрузка файлов еще не настроена. Обратитесь к администратору.');
return false;
}
}
return true;
}
public function getPath()
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment