Skip to content

Commit

Permalink
Fix. Autoloader. Prevent to include SPBCT and UNIFORCE classes.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Sep 1, 2022
1 parent d8f2029 commit 505d35f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion cleantalk/lib/autoloader.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ function ct_autoloader( $class ){

// Register class auto loader
// Custom modules
if( strpos( $class, 'Cleantalk' ) !== false ){
if( strpos( $class, 'Cleantalk' ) !== false && strpos($class, 'CleantalkSP') === false && strpos( $class, 'Cleantalk\\USP' ) === false ){
$class = str_replace( '\\', DIRECTORY_SEPARATOR, $class );
$class_file = __DIR__ . DIRECTORY_SEPARATOR . $class . '.php';
if( file_exists( $class_file ) ){
Expand Down

0 comments on commit 505d35f

Please sign in to comment.