Update activitypub.php
Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
This commit is contained in:
parent
9da559be6a
commit
3c02744925
1 changed files with 1 additions and 1 deletions
|
@ -66,7 +66,7 @@ spl_autoload_register(
|
|||
if ( strncmp( $class, $base, strlen( $base ) ) === 0 ) {
|
||||
$class = str_replace( 'activitypub\\', '', $class );
|
||||
|
||||
if ( strpos( $class, '\\' ) ) {
|
||||
if ( false !== strpos( $class, '\\' ) ) {
|
||||
list( $sub_dir, $class ) = explode( '\\', $class );
|
||||
$base_dir = $base_dir . $sub_dir . DIRECTORY_SEPARATOR;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue