fix 404 handling #241

This commit is contained in:
leogermani 2019-07-25 10:12:26 -03:00
parent 87c05bbd39
commit 81bd0cfc21
1 changed files with 1 additions and 1 deletions

View File

@ -218,7 +218,7 @@ class Private_Files {
} }
// private both // private both
$prefixed_both = str_replace( DIRECTORY_SEPARATOR . $collection_id . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR . $this->get_private_folder_prefix() . $collection_id . DIRECTORY_SEPARATOR, $prefixed_file); $prefixed_both = str_replace( DIRECTORY_SEPARATOR . $collection_id . DIRECTORY_SEPARATOR, DIRECTORY_SEPARATOR . $this->get_private_folder_prefix() . $collection_id . DIRECTORY_SEPARATOR, $prefixed_file);
if ( !$existing_file && \file_exists( $prefixed_collection ) ) { if ( !$existing_file && \file_exists( $prefixed_both ) ) {
$existing_file = $prefixed_both; $existing_file = $prefixed_both;
} }