summaryrefslogtreecommitdiff
path: root/app/Controller/ProjectStatusController.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
committerFrederic Guillot <fred@kanboard.net>2016-05-28 19:48:22 -0400
commit14713b0ec7ed93ca45578da069ad4e19a7d8addf (patch)
tree79972d53f6091a1ddb17f64a6a05a5523f5d5168 /app/Controller/ProjectStatusController.php
parent936376ffe74c583d3cb819e98f53a85137fdf8bc (diff)
Rename all models
Diffstat (limited to 'app/Controller/ProjectStatusController.php')
-rw-r--r--app/Controller/ProjectStatusController.php6
1 files changed, 3 insertions, 3 deletions
diff --git a/app/Controller/ProjectStatusController.php b/app/Controller/ProjectStatusController.php
index 16ac32b8..78e77870 100644
--- a/app/Controller/ProjectStatusController.php
+++ b/app/Controller/ProjectStatusController.php
@@ -31,7 +31,7 @@ class ProjectStatusController extends BaseController
$project = $this->getProject();
$this->checkCSRFParam();
- if ($this->project->enable($project['id'])) {
+ if ($this->projectModel->enable($project['id'])) {
$this->flash->success(t('Project activated successfully.'));
} else {
$this->flash->failure(t('Unable to activate this project.'));
@@ -61,7 +61,7 @@ class ProjectStatusController extends BaseController
$project = $this->getProject();
$this->checkCSRFParam();
- if ($this->project->disable($project['id'])) {
+ if ($this->projectModel->disable($project['id'])) {
$this->flash->success(t('Project disabled successfully.'));
} else {
$this->flash->failure(t('Unable to disable this project.'));
@@ -91,7 +91,7 @@ class ProjectStatusController extends BaseController
$project = $this->getProject();
$this->checkCSRFParam();
- if ($this->project->remove($project['id'])) {
+ if ($this->projectModel->remove($project['id'])) {
$this->flash->success(t('Project removed successfully.'));
} else {
$this->flash->failure(t('Unable to remove this project.'));