From 13acdbd444b0ae26e83ab8cf62d60a7f59268545 Mon Sep 17 00:00:00 2001 From: vincent-peugnet Date: Tue, 4 Dec 2018 13:55:04 +0100 Subject: admin panel --- app/class/controllerfont.php | 8 ++++++-- 1 file changed, 6 insertions(+), 2 deletions(-) (limited to 'app/class/controllerfont.php') 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(); + } } } -- cgit v1.2.3