Skip to content

Commit

Permalink
Use suggestEnvVars
Browse files Browse the repository at this point in the history
  • Loading branch information
brandonkelly committed Feb 4, 2019
1 parent 3401ff3 commit 2d542ce
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 5 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ This plugin provides a [Mailgun](http://www.mailgun.com/) integration for [Craft

## Requirements

This plugin requires Craft CMS 3.1.0 or later.
This plugin requires Craft CMS 3.1.5 or later.

You can install this plugin from the Plugin Store or with Composer.

Expand Down
2 changes: 1 addition & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"rss": "https://github.com/craftcms/mailgun/commits/master.atom"
},
"require": {
"craftcms/cms": "^3.1.0",
"craftcms/cms": "^3.1.5",
"cspoo/swiftmailer-mailgun-bundle": "^1.0.0",
"php-http/guzzle6-adapter": "^1.1.1"
},
Expand Down
6 changes: 3 additions & 3 deletions src/templates/settings.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
instructions: "The domain to send email from."|t('mailgun'),
id: 'domain',
name: 'domain',
suggestions: craft.cp.getEnvSuggestions(),
suggestEnvVars: true,
value: adapter.domain,
errors: adapter.getErrors('domain')
}) }}
Expand All @@ -17,7 +17,7 @@
instructions: "You can find this in your Mailgun settings for the chosen domain."|t('mailgun'),
id: 'apiKey',
name: 'apiKey',
suggestions: craft.cp.getEnvSuggestions(),
suggestEnvVars: true,
value: adapter.apiKey,
errors: adapter.getErrors('apiKey')
}) }}
Expand All @@ -27,7 +27,7 @@
instructions: "You can find this in your Mailgun settings for the chosen domain."|t('mailgun'),
id: 'endpoint',
name: 'endpoint',
suggestions: craft.cp.getEnvSuggestions(),
suggestEnvVars: true,
placeholder: 'https://api.mailgun.net',
value: adapter.endpoint,
errors: adapter.getErrors('endpoint')
Expand Down

0 comments on commit 2d542ce

Please sign in to comment.