From: Steve Sutton Date: Tue, 5 Aug 2014 18:38:35 +0000 (-0400) Subject: Common Events X-Git-Tag: v1.0.1^2 X-Git-Url: http://cvs2.gaslightmedia.com/gitweb/?a=commitdiff_plain;h=7ed68ae1a03b40f22207a9213ffd987f640ba231;p=web%2FCityofMI.git Common Events move this after it figures out the calendar link from home page. so it doesn't override it --- 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/');