- fixed directory separator;

This commit is contained in:
nikitozzzzzzz
2018-08-09 00:37:17 +03:00
parent 173576e2da
commit 6590252e5f
+2 -2
View File
@@ -889,8 +889,8 @@ if ( ! class_exists( 'um\core\Uploader' ) ) {
*/
public function delete_existing_file( $filename, $ext = '', $dir = '' ){
if( file_exists( $this->upload_user_basedir."/".$filename ) && ! empty( $filename ) ){
unlink( $this->upload_user_basedir."/".$filename );
if( file_exists( $this->upload_user_basedir . DIRECTORY_SEPARATOR . $filename ) && ! empty( $filename ) ){
unlink( $this->upload_user_basedir . DIRECTORY_SEPARATOR . $filename );
}
}