mirror of
https://github.com/ad-aures/castopod.git
synced 2026-04-13 03:27:45 +02:00
refactor: use Validation::getValidated() when using $this->validate() in controllers
This commit is contained in:
parent
ff0e681763
commit
2c07070b2c
18 changed files with 129 additions and 70 deletions
|
|
@ -77,7 +77,9 @@ class SubscriptionController extends BaseController
|
|||
->with('errors', $this->validator->getErrors());
|
||||
}
|
||||
|
||||
if (($subscriptionLink = $this->request->getPost('subscription_link')) === '') {
|
||||
$validData = $this->validator->getValidated();
|
||||
|
||||
if (($subscriptionLink = $validData['subscription_link']) === '') {
|
||||
service('settings')
|
||||
->forget('Subscription.link', 'podcast:' . $this->podcast->id);
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue