Loading mailjet.install +4 −8 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ * Install, update and uninstall functions for the Mailjet Module. */ use PHPMailer\PHPMailer\PHPMailer; /** * Implements hook_requirements(). Loading @@ -12,13 +13,8 @@ function mailjet_requirements($phase) { $requirements = []; if ($phase == 'install') { if (class_exists('PHPMailer')) { $mail = new PHPMailer(); } if (empty($mail)) { if ($phase === 'install') { if (!class_exists(PHPMailer::class)) { $requirements['mailjet'] = [ 'title' => (string) t('PHPMailer library'), 'value' => (string) t('Missing'), Loading @@ -28,7 +24,7 @@ function mailjet_requirements($phase) { } else { $required_version = '6.0.7'; $installed_version = $mail->Version; $installed_version = PHPMailer::VERSION; $requirements['mailjet'] = [ 'title' => (string) t('PHPMailer library'), 'value' => $installed_version, Loading Loading
mailjet.install +4 −8 Original line number Diff line number Diff line Loading @@ -5,6 +5,7 @@ * Install, update and uninstall functions for the Mailjet Module. */ use PHPMailer\PHPMailer\PHPMailer; /** * Implements hook_requirements(). Loading @@ -12,13 +13,8 @@ function mailjet_requirements($phase) { $requirements = []; if ($phase == 'install') { if (class_exists('PHPMailer')) { $mail = new PHPMailer(); } if (empty($mail)) { if ($phase === 'install') { if (!class_exists(PHPMailer::class)) { $requirements['mailjet'] = [ 'title' => (string) t('PHPMailer library'), 'value' => (string) t('Missing'), Loading @@ -28,7 +24,7 @@ function mailjet_requirements($phase) { } else { $required_version = '6.0.7'; $installed_version = $mail->Version; $installed_version = PHPMailer::VERSION; $requirements['mailjet'] = [ 'title' => (string) t('PHPMailer library'), 'value' => $installed_version, Loading