demo update
All checks were successful
Build and push / Pulling repo on server (push) Successful in 2s

This commit is contained in:
2023-10-26 16:41:33 +02:00
parent 12c11b65ba
commit c3fbb0fc67
10 changed files with 38 additions and 24 deletions

View File

@ -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']);
}
}