summaryrefslogtreecommitdiff
path: root/app/Controller/Currency.php
diff options
context:
space:
mode:
Diffstat (limited to 'app/Controller/Currency.php')
-rw-r--r--app/Controller/Currency.php7
1 files changed, 2 insertions, 5 deletions
diff --git a/app/Controller/Currency.php b/app/Controller/Currency.php
index d3f9de5f..9d6b0249 100644
--- a/app/Controller/Currency.php
+++ b/app/Controller/Currency.php
@@ -54,12 +54,10 @@ class Currency extends Base
list($valid, $errors) = $this->currency->validate($values);
if ($valid) {
-
if ($this->currency->create($values['currency'], $values['rate'])) {
$this->session->flash(t('The currency rate have been added successfully.'));
$this->response->redirect($this->helper->url->to('currency', 'index'));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to add this currency rate.'));
}
}
@@ -79,8 +77,7 @@ class Currency extends Base
if ($this->config->save($values)) {
$this->config->reload();
$this->session->flash(t('Settings saved successfully.'));
- }
- else {
+ } else {
$this->session->flashError(t('Unable to save your settings.'));
}