forked from LiveCarta/LiveCartaWP
Changed source root directory
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
<?php
|
||||
defined( 'ABSPATH' ) || exit;
|
||||
|
||||
spl_autoload_register( function ( $class ) {
|
||||
$prefix = 'Cmatic\\Metrics\\';
|
||||
if ( strncmp( $prefix, $class, strlen( $prefix ) ) !== 0 ) {
|
||||
return;
|
||||
}
|
||||
$file = __DIR__ . '/' . str_replace( '\\', '/', substr( $class, strlen( $prefix ) ) ) . '.php';
|
||||
if ( file_exists( $file ) ) {
|
||||
require $file;
|
||||
}
|
||||
} );
|
||||
Reference in New Issue
Block a user