remove DIRECTORY_SEPARATOR because its not used anywhere else
This commit is contained in:
parent
baa8027e3f
commit
7b545b4639
1 changed files with 2 additions and 2 deletions
|
@ -58,7 +58,7 @@ function init() {
|
||||||
*/
|
*/
|
||||||
spl_autoload_register(
|
spl_autoload_register(
|
||||||
function ( $class ) {
|
function ( $class ) {
|
||||||
$base_dir = trailingslashit( __DIR__ ) . 'includes' . DIRECTORY_SEPARATOR;
|
$base_dir = \dirname( __FILE__ ) . '/includes/';
|
||||||
$base = 'activitypub';
|
$base = 'activitypub';
|
||||||
|
|
||||||
$class = strtolower( $class );
|
$class = strtolower( $class );
|
||||||
|
@ -68,7 +68,7 @@ spl_autoload_register(
|
||||||
|
|
||||||
if ( false !== strpos( $class, '\\' ) ) {
|
if ( false !== strpos( $class, '\\' ) ) {
|
||||||
list( $sub_dir, $class ) = explode( '\\', $class );
|
list( $sub_dir, $class ) = explode( '\\', $class );
|
||||||
$base_dir = $base_dir . $sub_dir . DIRECTORY_SEPARATOR;
|
$base_dir = $base_dir . $sub_dir . '/';
|
||||||
}
|
}
|
||||||
|
|
||||||
$filename = 'class-' . strtr( $class, '_', '-' );
|
$filename = 'class-' . strtr( $class, '_', '-' );
|
||||||
|
|
Loading…
Reference in a new issue