1
0
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:
Marco Dickert
2017-09-15 10:50:08 +02:00
parent 45b529490d
commit f13a8ca1b8
3 changed files with 3 additions and 3 deletions

View File

@@ -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'] ) );
}

View File

@@ -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'] ) );
}

View File

@@ -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'] ) );
}