misc changes
This commit is contained in:
parent
858ebeb1fa
commit
45b9ca91e4
2 changed files with 1 additions and 3 deletions
|
@ -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:
|
||||
|
|
|
@ -61,7 +61,7 @@ class ExceptionHandler
|
|||
|
||||
$debug = config('dev.show_errors');
|
||||
|
||||
if (true) {
|
||||
if ($debug) {
|
||||
header('Content-Type: text/plain');
|
||||
echo $ex;
|
||||
} else {
|
||||
|
|
Reference in a new issue