Commit 5ac75e36 authored by Kenny Hall's avatar Kenny Hall

Fixed the method that checks for sendwp to use correct syntax for namespaced classes.

parent 9ecdbe17
Pipeline #1894 passed with stage
in 37 seconds
......@@ -86,7 +86,7 @@ class NF_PromotionManager
if( phpversion() < '5.6.0' ) {
$this->remove_promotion( 'sendwp' );
return;
} elseif( $this->is_sendwp_active() ) {
} if( $this->is_sendwp_active() ) {
$this->remove_promotion( 'sendwp' );
}
}
......@@ -178,7 +178,7 @@ class NF_PromotionManager
private function is_sendwp_active()
{
if( class_exists( '\\SendWP\\Mailer', FALSE ) ) {
if( class_exists( '\SendWP\Mailer', FALSE ) ) {
return true;
}
return false;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment