From 7ed68ae1a03b40f22207a9213ffd987f640ba231 Mon Sep 17 00:00:00 2001 From: Steve Sutton Date: Tue, 5 Aug 2014 14:38:35 -0400 Subject: [PATCH] Common Events move this after it figures out the calendar link from home page. so it doesn't override it --- static/10.phtml | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/static/10.phtml b/static/10.phtml index 4642746..f4dc3bb 100755 --- a/static/10.phtml +++ b/static/10.phtml @@ -3,9 +3,7 @@ if (defined('COMMON_EVENTS') && COMMON_EVENTS) { $search = filter_var($_REQUEST['search'], FILTER_VALIDATE_BOOLEAN); $t = filter_var($_REQUEST['t']); $eventId = filter_var($_REQUEST['eventid'], FILTER_VALIDATE_INT); - if (!$t && !$search && !$eventId) { - $_REQUEST['t'] = '30'; - } + $calendarDateArray = filter_var_array( $_REQUEST, array( @@ -26,6 +24,9 @@ if (defined('COMMON_EVENTS') && COMMON_EVENTS) { $_REQUEST['search'] = 1; $_REQUEST['startMonth'] = $_REQUEST['endMonth'] = date('m/d/Y', $time); } + if (!$t && !$search && !$eventId) { + $_REQUEST['t'] = '30'; + } // set CommonApp define if not set if (!defined('COMMON_APP_BASE')) { define('COMMON_APP_BASE', '/var/www/server/CommonApps/'); -- 2.17.1