mirror of
				https://github.com/pelican-dev/panel.git
				synced 2025-10-31 05:36:51 +01:00 
			
		
		
		
	Merge pull request #210 from Boy132/patch-1
Use correct variable name for mail driver
This commit is contained in:
		
						commit
						2f8a15facd
					
				| @ -31,7 +31,7 @@ class EmailSettingsCommand extends Command | |||||||
|      */ |      */ | ||||||
|     public function handle(): void |     public function handle(): void | ||||||
|     { |     { | ||||||
|         $this->variables['MAIL_DRIVER'] = $this->option('driver') ?? $this->choice( |         $this->variables['MAIL_MAILER'] = $this->option('driver') ?? $this->choice( | ||||||
|             trans('command/messages.environment.mail.ask_driver'), |             trans('command/messages.environment.mail.ask_driver'), | ||||||
|             [ |             [ | ||||||
|                 'log' => 'Log', |                 'log' => 'Log', | ||||||
| @ -41,10 +41,10 @@ class EmailSettingsCommand extends Command | |||||||
|                 'mandrill' => 'Mandrill', |                 'mandrill' => 'Mandrill', | ||||||
|                 'postmark' => 'Postmark', |                 'postmark' => 'Postmark', | ||||||
|             ], |             ], | ||||||
|             'smtp', |             env('MAIL_MAILER', env('MAIL_DRIVER', 'smtp')), | ||||||
|         ); |         ); | ||||||
| 
 | 
 | ||||||
|         $method = 'setup' . studly_case($this->variables['MAIL_DRIVER']) . 'DriverVariables'; |         $method = 'setup' . studly_case($this->variables['MAIL_MAILER']) . 'DriverVariables'; | ||||||
|         if (method_exists($this, $method)) { |         if (method_exists($this, $method)) { | ||||||
|             $this->{$method}(); |             $this->{$method}(); | ||||||
|         } |         } | ||||||
|  | |||||||
| @ -17,7 +17,6 @@ | |||||||
|     <env name="MAIL_MAILER" value="array"/> |     <env name="MAIL_MAILER" value="array"/> | ||||||
|     <env name="SESSION_DRIVER" value="array"/> |     <env name="SESSION_DRIVER" value="array"/> | ||||||
|     <env name="QUEUE_CONNECTION" value="sync"/> |     <env name="QUEUE_CONNECTION" value="sync"/> | ||||||
|     <env name="MAIL_DRIVER" value="array"/> |  | ||||||
|   </php> |   </php> | ||||||
|   <source> |   <source> | ||||||
|     <include> |     <include> | ||||||
|  | |||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user
	 Charles
						Charles