mirror of
https://github.com/misterunknown/ifm.git
synced 2025-08-10 10:04:01 +02:00
fix wrong error message when trying to upload a file in a directory which is not writable
This commit is contained in:
@@ -3438,7 +3438,7 @@ function IFM( params ) {
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_error'] ) );
|
||||
}
|
||||
else
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_success'] ) );
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_error'] ) );
|
||||
} else
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_not_found'] ) );
|
||||
}
|
||||
|
2
ifm.php
2
ifm.php
@@ -3438,7 +3438,7 @@ function IFM( params ) {
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_error'] ) );
|
||||
}
|
||||
else
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_success'] ) );
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_error'] ) );
|
||||
} else
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_not_found'] ) );
|
||||
}
|
||||
|
@@ -711,7 +711,7 @@ f00bar;
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_error'] ) );
|
||||
}
|
||||
else
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_success'] ) );
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_upload_error'] ) );
|
||||
} else
|
||||
$this->jsonResponse( array( "status" => "ERROR", "message" => $this->l['file_not_found'] ) );
|
||||
}
|
||||
|
Reference in New Issue
Block a user