Rename all models

This commit is contained in:
Frederic Guillot
2016-05-28 19:48:22 -04:00
parent 936376ffe7
commit 14713b0ec7
411 changed files with 4145 additions and 4156 deletions

View File

@@ -34,7 +34,7 @@ class UserStatusController extends BaseController
$user = $this->getUser();
$this->checkCSRFParam();
if ($this->user->remove($user['id'])) {
if ($this->userModel->remove($user['id'])) {
$this->flash->success(t('User removed successfully.'));
} else {
$this->flash->failure(t('Unable to remove this user.'));
@@ -67,7 +67,7 @@ class UserStatusController extends BaseController
$user = $this->getUser();
$this->checkCSRFParam();
if ($this->user->enable($user['id'])) {
if ($this->userModel->enable($user['id'])) {
$this->flash->success(t('User activated successfully.'));
} else {
$this->flash->failure(t('Unable to enable this user.'));
@@ -100,7 +100,7 @@ class UserStatusController extends BaseController
$user = $this->getUser();
$this->checkCSRFParam();
if ($this->user->disable($user['id'])) {
if ($this->userModel->disable($user['id'])) {
$this->flash->success(t('User disabled successfully.'));
} else {
$this->flash->failure(t('Unable to disable this user.'));