misc changes

This commit is contained in:
flash 2016-09-16 21:07:27 +02:00
parent 858ebeb1fa
commit 45b9ca91e4
2 changed files with 1 additions and 3 deletions

View file

@ -57,8 +57,6 @@ class FileController extends Controller
*/
private function upload($mode, $file, $user)
{
$error = null;
// Handle errors
switch ($file['error']) {
case UPLOAD_ERR_OK:

View file

@ -61,7 +61,7 @@ class ExceptionHandler
$debug = config('dev.show_errors');
if (true) {
if ($debug) {
header('Content-Type: text/plain');
echo $ex;
} else {