Skip to content

Commit

Permalink
autoloader fix
Browse files Browse the repository at this point in the history
  • Loading branch information
Aleksei Tikhomirov committed May 14, 2023
1 parent 94a8039 commit 35dd92f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion wc-plugin-update-server.php
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@
define('WCPUS', __FILE__);

spl_autoload_register(function ($className){
$path = realpath(__DIR__) . '\includes\\' . strtr($className, '\\', DIRECTORY_SEPARATOR) . '.php';
$path = realpath(__DIR__ . '/includes/' . strtr($className, '/', DIRECTORY_SEPARATOR) . '.php');
if (is_readable($path)) {
include_once $path;
}
Expand Down

0 comments on commit 35dd92f

Please sign in to comment.