summaryrefslogtreecommitdiff
path: root/app/Controller/ConfigController.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/ConfigController.php')
-rw-r--r--app/Controller/ConfigController.php21
1 files changed, 21 insertions, 0 deletions
diff --git a/app/Controller/ConfigController.php b/app/Controller/ConfigController.php
index 8bcf4c35..8285ee13 100644
--- a/app/Controller/ConfigController.php
+++ b/app/Controller/ConfigController.php
@@ -72,6 +72,7 @@ class ConfigController extends BaseController
public function application()
{
$this->response->html($this->helper->layout->config('config/application', array(
+ 'mail_transports' => $this->emailClient->getAvailableTransports(),
'languages' => $this->languageModel->getLanguages(),
'timezones' => $this->timezoneModel->getTimezones(),
'date_formats' => $this->dateParser->getAvailableFormats($this->dateParser->getDateFormats()),
@@ -82,6 +83,26 @@ class ConfigController extends BaseController
}
/**
+ * Display the email settings page
+ *
+ * @access public
+ */
+ public function email()
+ {
+ $values = $this->configModel->getAll();
+
+ if (empty($values['mail_transport'])) {
+ $values['mail_transport'] = MAIL_TRANSPORT;
+ }
+
+ $this->response->html($this->helper->layout->config('config/email', array(
+ 'values' => $values,
+ 'mail_transports' => $this->emailClient->getAvailableTransports(),
+ 'title' => t('Settings').' > '.t('Email settings'),
+ )));
+ }
+
+ /**
* Display the project settings page
*
* @access public