Plugin Directory

Changeset 2818901


Ignore:
Timestamp:
11/16/2022 11:26:16 AM (3 years ago)
Author:
surferseo
Message:

Fix: case sensitive paths

Location:
surferseo
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • surferseo/tags/1.1.0.183/includes/class-autoloader.php

    r2818847 r2818901  
    7777
    7878        // Now build a path to the file using mapping to the file location.
    79         $filepath  = trailingslashit( dirname( dirname( __FILE__ ) ) . $namespace );
    80         $filepath .= $file_name;
    81         $filepath  = strtolower( $filepath );
     79        $filepath  = dirname( dirname( __FILE__ ) );
     80        $filepath  = trailingslashit( $filepath . strtolower( $namespace ) );
     81        $filepath .= strtolower( $file_name );
    8282
    8383        // If the file exists in the specified path, then include it.
  • surferseo/trunk/includes/class-autoloader.php

    r2818847 r2818901  
    7777
    7878        // Now build a path to the file using mapping to the file location.
    79         $filepath  = trailingslashit( dirname( dirname( __FILE__ ) ) . $namespace );
    80         $filepath .= $file_name;
    81         $filepath  = strtolower( $filepath );
     79        $filepath  = dirname( dirname( __FILE__ ) );
     80        $filepath  = trailingslashit( $filepath . strtolower( $namespace ) );
     81        $filepath .= strtolower( $file_name );
    8282
    8383        // If the file exists in the specified path, then include it.
Note: See TracChangeset for help on using the changeset viewer.