diff options
Diffstat (limited to 'app/Controller/Link.php')
-rw-r--r-- | app/Controller/Link.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Link.php b/app/Controller/Link.php index 2ae57b1a..d52d1f91 100644 --- a/app/Controller/Link.php +++ b/app/Controller/Link.php @@ -67,7 +67,7 @@ class Link extends Base public function save() { $values = $this->request->getValues(); - list($valid, $errors) = $this->link->validateCreation($values); + list($valid, $errors) = $this->linkValidator->validateCreation($values); if ($valid) { if ($this->link->create($values['label'], $values['opposite_label']) !== false) { @@ -108,7 +108,7 @@ class Link extends Base public function update() { $values = $this->request->getValues(); - list($valid, $errors) = $this->link->validateModification($values); + list($valid, $errors) = $this->linkValidator->validateModification($values); if ($valid) { if ($this->link->update($values)) { |