Update activitypub.php
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
This commit is contained in:
parent
6fce2c30d2
commit
75c1c6a402
1 changed files with 1 additions and 1 deletions
|
@ -71,7 +71,7 @@ spl_autoload_register(
|
||||||
$base_dir = $base_dir . $sub_dir . DIRECTORY_SEPARATOR;
|
$base_dir = $base_dir . $sub_dir . DIRECTORY_SEPARATOR;
|
||||||
}
|
}
|
||||||
|
|
||||||
$filename = 'class-' . str_replace( '_', '-', $class );
|
$filename = 'class-' . strtr( $class, '_', '-' );
|
||||||
$file = $base_dir . $filename . '.php';
|
$file = $base_dir . $filename . '.php';
|
||||||
|
|
||||||
if ( file_exists( $file ) ) {
|
if ( file_exists( $file ) ) {
|
||||||
|
|
Loading…
Reference in a new issue