Skip to content

Commit

Permalink
Merge pull request #29 from rtCamp/fix/GH-28
Browse files Browse the repository at this point in the history
Fix GH-28: Add condition to check windows drive path
  • Loading branch information
SID177 authored Apr 23, 2020
2 parents 9f16371 + bb3dab0 commit eccd7b8
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions inc/helpers/autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -77,8 +77,8 @@ function autoloader( $resource = '' ) {

}

if ( ! empty( $resource_path ) && file_exists( $resource_path ) && 0 === validate_file( $resource_path ) ) {
// We already making sure that file is exists and valid.
if ( ! empty( $resource_path ) && file_exists( $resource_path ) && ( 0 === validate_file( $resource_path ) || 2 === validate_file( $resource_path ) ) ) {
// We are already making sure that the file exists and it's valid.
require_once( $resource_path ); // phpcs:ignore
}

Expand Down

0 comments on commit eccd7b8

Please sign in to comment.