Skip to content

Commit

Permalink
Fix setup when illuminate/support installed but not vlucas/dotenv pac…
Browse files Browse the repository at this point in the history
…kage
  • Loading branch information
ol1s authored Aug 8, 2019
1 parent 21842b0 commit ab5027a
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions classes/Setup.php
Original file line number Diff line number Diff line change
Expand Up @@ -89,14 +89,14 @@ public static function setupWordpress()
self::$salt = NONCE_SALT;

//default debug
if (function_exists('env')) {
if (function_exists('env') && class_exists('Dotenv\\Environment\\DotenvFactory')) {
if ($email = env('DEBUG_EMAIL')) {
self::debug($email);
}
}

//default email from
if (function_exists('env')) {
if (function_exists('env') && class_exists('Dotenv\\Environment\\DotenvFactory')) {
if ($email = env('MAIL_FROM')) {
$name = env('MAIL_NAME');
self::emailFrom($email, $name);
Expand Down

0 comments on commit ab5027a

Please sign in to comment.