Scrollreveal+cat+datenews

This commit is contained in:
2019-01-07 11:43:39 +01:00
parent e4cac3d01e
commit 762a1ad170
3158 changed files with 140699 additions and 73915 deletions
+3 -2
View File
@@ -193,9 +193,10 @@ class FormPlugin extends Plugin
// Post the form
if ($this->form) {
if ($uri->post('__form-file-uploader__') && $uri->extension() === 'json') {
$isJson = $uri->extension() === 'json';
if ($isJson && $uri->post('__form-file-uploader__')) {
$this->json_response = $this->form->uploadFiles();
} else if ($this->form && isset($_POST['__form-file-remover__']) && $this->grav['uri']->extension() === 'json') {
} elseif ($isJson && $uri->post('__form-file-remover__')) {
$this->json_response = $this->form->filesSessionRemove();
} else {
$this->form->post();