From ce37dc21478629a6ef31c22d3c3b3b646ac67e9f Mon Sep 17 00:00:00 2001 From: nrpatten Date: Tue, 21 Jan 2014 16:35:20 +1100 Subject: [PATCH 1/3] [FIX] input[type=email] in the wrong order [FIX] fieldset input[type=email] was in the wrong order. --- public/site_assets/mpos/css/layout.css | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/public/site_assets/mpos/css/layout.css b/public/site_assets/mpos/css/layout.css index ac246124..2ff6631a 100644 --- a/public/site_assets/mpos/css/layout.css +++ b/public/site_assets/mpos/css/layout.css @@ -684,7 +684,7 @@ margin: -5px 0 5px 0; text-transform: uppercase; } -fieldset input[type=email], fieldset input[type=text], fieldset input[type=password] { +fieldset input[type=text], fieldset input[type=email], fieldset input[type=password] { -webkit-border-radius: 5px; -moz-border-radius: 5px; border-radius: 5px; From 0cfc92bd2b323bb302756ca7b67fd159d2501785 Mon Sep 17 00:00:00 2001 From: nrpatten Date: Tue, 21 Jan 2014 17:12:06 +1100 Subject: [PATCH 2/3] [FIX] Overlap and Reposition TABS [FIX] "E-mail address for system error" Overlap and realign class="tabs" to fieldset --- public/templates/mpos/admin/settings/default.tpl | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/public/templates/mpos/admin/settings/default.tpl b/public/templates/mpos/admin/settings/default.tpl index 7ab60aed..1dc5979d 100644 --- a/public/templates/mpos/admin/settings/default.tpl +++ b/public/templates/mpos/admin/settings/default.tpl @@ -5,7 +5,7 @@

Settings

-
    +
      {foreach item=TAB from=array_keys($SETTINGS)}
    • {$TAB|capitalize}
    • {/foreach} @@ -14,6 +14,7 @@
      {foreach item=TAB from=array_keys($SETTINGS)}
      +
      {section name=setting loop=$SETTINGS.$TAB}
      From b411f68d6499d44a134ed10ab1b67efd30b03eef Mon Sep 17 00:00:00 2001 From: nrpatten Date: Tue, 21 Jan 2014 18:37:19 +1100 Subject: [PATCH 3/3] [FIX] Unknown Pool Remove From: {$GLOBAL.website.name|default:"Unknown Pool"} Add From: ' . $this->setting->getValue('website_name') --- public/include/classes/mail.class.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/public/include/classes/mail.class.php b/public/include/classes/mail.class.php index aeb4659c..e25f3180 100644 --- a/public/include/classes/mail.class.php +++ b/public/include/classes/mail.class.php @@ -57,17 +57,17 @@ class Mail extends Base { **/ public function sendMail($template, $aData) { // Make sure we don't load a cached filed - $this->smarty->clearCache(BASEPATH . 'templates/mail/' . $template . '.tpl'); + $this->smarty->clearCache(BASEPATH . 'templates/mail/' . $template . '.tpl'); $this->smarty->clearCache(BASEPATH . 'templates/mail/subject.tpl'); $this->smarty->assign('WEBSITENAME', $this->setting->getValue('website_name')); $this->smarty->assign('SUBJECT', $aData['subject']); $this->smarty->assign('DATA', $aData); - $headers = 'From: {$GLOBAL.website.name|default:"Unknown Pool"} <' . $this->setting->getValue('website_email') . ">\n"; + $headers .= 'From: ' . $this->setting->getValue('website_name') . '<' . $this->setting->getValue('website_email') . ">\n"; $headers .= "MIME-Version: 1.0\n"; $headers .= "Content-Type: text/html; charset=ISO-8859-1\r\n"; if (strlen(@$aData['senderName']) > 0 && @strlen($aData['senderEmail']) > 0 ) $headers .= 'Reply-To: ' . $aData['senderName'] . ' <' . $aData['senderEmail'] . ">\n"; - if (mail($aData['email'], $this->smarty->fetch(BASEPATH . 'templates/mail/subject.tpl'), $this->smarty->fetch(BASEPATH . 'templates/mail/' . $template . '.tpl'), $headers)) + if (mail($aData['email'], $this->smarty->fetch(BASEPATH . 'templates/mail/subject.tpl'), $this->smarty->fetch(BASEPATH . 'templates/mail/' . $template .$ return true; $this->setErrorMessage($this->sqlError('E0031')); return false;