demo update
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s
This commit is contained in:
@ -105,23 +105,17 @@ class Dogs extends Page {
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->set('errorMessage', 'Die Datei ist zu groß. Bitte eine kleinere Datei hochladen');
|
||||
$this->set('template', '/templates/partials/error.html');
|
||||
return;
|
||||
return partial('error.html', ['errorTitle' => 'Error', 'errorMessage' => 'Die Datei ist zu groß. Bitte eine kleinere Datei hochladen']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->set('errorMessage', 'Beim Upload der Datei ist ein Fehler aufgetreten');
|
||||
$this->set('template', '/templates/partials/error.html');
|
||||
return;
|
||||
return partial('error.html', ['errorTitle' => 'Error', 'errorMessage' => 'Beim Upload der Datei ist ein Fehler aufgetreten']);
|
||||
}
|
||||
}
|
||||
else
|
||||
{
|
||||
$this->set('errorMessage', 'Dieser Dateityp ist nicht erlaubt. Bitte nur jpg, jpeg oder png Dateien hochladen');
|
||||
$this->set('template', '/templates/partials/error.html');
|
||||
return;
|
||||
return partial('error.html', ['errorTitle' => 'Error', 'errorMessage' => 'Dieser Dateityp ist nicht erlaubt. Bitte nur jpg, jpeg oder png Dateien hochladen']);
|
||||
}
|
||||
}
|
||||
|
||||
|
Reference in New Issue
Block a user