From 6e9980647935e513b117d1443a8e2ba84253ab71 Mon Sep 17 00:00:00 2001 From: Sebastian Grewe Date: Thu, 9 Jan 2014 09:09:14 +0100 Subject: [PATCH] [REMOVE] Uneeded, useless support page * Removed support page templates * Changed navigation to contact * Modified contact form behaviour on enable/disable events This fixes #1300. It wasn't clear which templates needed to be edited for the contact form to work. --- public/include/pages/contactform.inc.php | 2 +- public/templates/mpos/global/navigation.tpl | 10 +++------- public/templates/mpos/support/default.tpl | 10 ---------- 3 files changed, 4 insertions(+), 18 deletions(-) delete mode 100644 public/templates/mpos/support/default.tpl diff --git a/public/include/pages/contactform.inc.php b/public/include/pages/contactform.inc.php index 75dc427f..ad4a54c7 100644 --- a/public/include/pages/contactform.inc.php +++ b/public/include/pages/contactform.inc.php @@ -5,7 +5,7 @@ if (!defined('SECURITY')) die('Hacking attempt'); if ($setting->getValue('disable_contactform')) { $_SESSION['POPUP'][] = array('CONTENT' => 'Contactform is currently disabled. Please try again later.', 'TYPE' => 'errormsg'); - $smarty->assign("CONTENT", "disabled.tpl"); + $smarty->assign("CONTENT", "empty"); } else if ($setting->getValue('disable_contactform_guest') && !$user->isAuthenticated(false)) { $_SESSION['POPUP'][] = array('CONTENT' => 'Contactform is disabled for guests.', 'TYPE' => 'errormsg'); $smarty->assign("CONTENT", "disabled.tpl"); diff --git a/public/templates/mpos/global/navigation.tpl b/public/templates/mpos/global/navigation.tpl index fd2da85a..b18a1a83 100644 --- a/public/templates/mpos/global/navigation.tpl +++ b/public/templates/mpos/global/navigation.tpl @@ -74,18 +74,14 @@