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)
|
private function upload($mode, $file, $user)
|
||||||
{
|
{
|
||||||
$error = null;
|
|
||||||
|
|
||||||
// Handle errors
|
// Handle errors
|
||||||
switch ($file['error']) {
|
switch ($file['error']) {
|
||||||
case UPLOAD_ERR_OK:
|
case UPLOAD_ERR_OK:
|
||||||
|
|
|
@ -61,7 +61,7 @@ class ExceptionHandler
|
||||||
|
|
||||||
$debug = config('dev.show_errors');
|
$debug = config('dev.show_errors');
|
||||||
|
|
||||||
if (true) {
|
if ($debug) {
|
||||||
header('Content-Type: text/plain');
|
header('Content-Type: text/plain');
|
||||||
echo $ex;
|
echo $ex;
|
||||||
} else {
|
} else {
|
||||||
|
|
Reference in a new issue