Метод save на модели Accounts теперь вызывается без аргумента false, т.к. из модели были удалены валидаторы

This commit is contained in:
ErickSkrauch
2016-11-02 00:02:58 +03:00
parent 3cce2c9bd1
commit b6b579b721
6 changed files with 6 additions and 6 deletions

View File

@@ -31,7 +31,7 @@ class ChangeLanguageForm extends ApiForm {
$account = $this->getAccount();
$account->lang = $this->lang;
if (!$account->save(false)) {
if (!$account->save()) {
throw new ErrorException('Cannot change user language');
}