Update activitypub.php

Co-authored-by: Alex Kirk <akirk@users.noreply.github.com>
This commit is contained in:
Matthias Pfefferle 2023-05-10 18:45:48 +02:00 committed by GitHub
parent 9da559be6a
commit 3c02744925
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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;
}