aboutsummaryrefslogtreecommitdiff
path: root/app/class/controllerfont.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/class/controllerfont.php')
-rw-r--r--app/class/controllerfont.php8
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();
+ }
}
}