Skip to content

Commit

Permalink
Fix. Integration. Masteriyo LMS PRO plugin integration fixed.
Browse files Browse the repository at this point in the history
  • Loading branch information
Glomberg committed Dec 11, 2024
1 parent b627205 commit becb982
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 2 deletions.
5 changes: 4 additions & 1 deletion inc/cleantalk-pluggable.php
Original file line number Diff line number Diff line change
Expand Up @@ -1199,7 +1199,10 @@ function apbct_is_skip_request($ajax = false)

// skip masteriyo_login LMS
if (
apbct_is_plugin_active('learning-management-system/lms.php') &&
(
apbct_is_plugin_active('learning-management-system/lms.php') ||
apbct_is_plugin_active('learning-management-system-pro/lms.php')
) &&
Post::get('action') === 'masteriyo_login'
) {
return 'masteriyo_login LMS';
Expand Down
5 changes: 4 additions & 1 deletion inc/cleantalk-public-integrations.php
Original file line number Diff line number Diff line change
Expand Up @@ -3379,7 +3379,10 @@ function apbct_custom_forms_trappings()
// Registration form of masteriyo registration
if ( $apbct->settings['forms__registrations_test'] &&
Post::get('masteriyo-registration') === 'yes' &&
apbct_is_plugin_active('learning-management-system/lms.php')
(
apbct_is_plugin_active('learning-management-system/lms.php') ||
apbct_is_plugin_active('learning-management-system-pro/lms.php')
)
) {
return true;
}
Expand Down

0 comments on commit becb982

Please sign in to comment.