summaryrefslogtreecommitdiff
path: root/app/Api/Comment.php
diff options
context:
space:
mode:
authorFrederic Guillot <fred@kanboard.net>2016-01-14 20:18:13 -0500
committerFrederic Guillot <fred@kanboard.net>2016-01-14 20:18:13 -0500
commit805be7d33155478ef32c4bd3643dcf4025d85a05 (patch)
tree4ee858d96f3e3bf2b630471db148446c3c56b693 /app/Api/Comment.php
parentdc35a78374e9b091505cfc56eefcd0c631c56e3a (diff)
Move validator methods
Diffstat (limited to 'app/Api/Comment.php')
-rw-r--r--app/Api/Comment.php4
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Api/Comment.php b/app/Api/Comment.php
index 4c4027c0..1fc1c708 100644
--- a/app/Api/Comment.php
+++ b/app/Api/Comment.php
@@ -34,7 +34,7 @@ class Comment extends \Kanboard\Core\Base
'reference' => $reference,
);
- list($valid, ) = $this->comment->validateCreation($values);
+ list($valid, ) = $this->commentValidator->validateCreation($values);
return $valid ? $this->comment->create($values) : false;
}
@@ -46,7 +46,7 @@ class Comment extends \Kanboard\Core\Base
'comment' => $content,
);
- list($valid, ) = $this->comment->validateModification($values);
+ list($valid, ) = $this->commentValidator->validateModification($values);
return $valid && $this->comment->update($values);
}
}