Remove unused variables

This commit is contained in:
Giuseppe Criscione 2018-10-13 12:20:14 +02:00
parent babc31155f
commit 87694b0cc2
3 changed files with 4 additions and 4 deletions

View File

@ -54,7 +54,7 @@ class Pages extends AbstractController
// Ensure no required data is missing
if (!$data->has(array('title', 'slug', 'template', 'parent'))) {
$this->notify($this->label('pages.page.cannot-create.var-missing', $var), 'error');
$this->notify($this->label('pages.page.cannot-create.var-missing'), 'error');
$this->redirect('/pages/', 302, true);
}
@ -120,7 +120,7 @@ class Pages extends AbstractController
// Ensure no required data is missing
if (!$data->has(array('title', 'content'))) {
$this->notify($this->label('pages.page.cannot-edit.var-missing', $var), 'error');
$this->notify($this->label('pages.page.cannot-edit.var-missing'), 'error');
$this->redirect('/pages/' . $params->get('page') . '/edit/', 302, true);
}

View File

@ -28,7 +28,7 @@ class Register extends AbstractController
$data = new DataGetter(HTTPRequest::postData());
if (!$data->has(array('username', 'fullname', 'password', 'email'))) {
$this->notify($this->label('users.user.cannot-create.var-missing', $var), 'error');
$this->notify($this->label('users.user.cannot-create.var-missing'), 'error');
$this->redirectToPanel(302, true);
}

View File

@ -42,7 +42,7 @@ class Users extends AbstractController
// Ensure no required data is missing
if (!$data->has(array('username', 'fullname', 'password', 'email', 'language'))) {
$this->notify($this->label('users.user.cannot-create.var-missing', $var), 'error');
$this->notify($this->label('users.user.cannot-create.var-missing'), 'error');
$this->redirect('/users/', 302, true);
}