diff options
author | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 13:55:04 +0100 |
---|---|---|
committer | vincent-peugnet <v.peugnet@free.fr> | 2018-12-04 13:55:04 +0100 |
commit | 13acdbd444b0ae26e83ab8cf62d60a7f59268545 (patch) | |
tree | 9186bda4bffa9751c5e93da2d09d762f40cc0adc /app/class/controllerfont.php | |
parent | d0ef17169701f90a9dab5f50e3eb61954653cae2 (diff) | |
download | wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.tar.gz wcms-13acdbd444b0ae26e83ab8cf62d60a7f59268545.zip |
admin panel
Diffstat (limited to 'app/class/controllerfont.php')
-rw-r--r-- | app/class/controllerfont.php | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/app/class/controllerfont.php b/app/class/controllerfont.php index d85e60e..b1cd0d9 100644 --- a/app/class/controllerfont.php +++ b/app/class/controllerfont.php @@ -32,13 +32,17 @@ class Controllerfont extends Controller public function add() { - var_dump($_FILES); if(isset($_POST['fontname'])) { $fontname = $_POST['fontname']; } else { $fontname = ''; } - var_dump($this->fontmanager->upload($_FILES, 2 ** 16, $fontname)); + $message = $this->fontmanager->upload($_FILES, 2 ** 16, $fontname); + if($message !== true) { + echo $message; + } else { + $this->render(); + } } } |