Common Events
authorSteve Sutton <steve@gaslightmedia.com>
Tue, 5 Aug 2014 18:38:35 +0000 (14:38 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Tue, 5 Aug 2014 18:38:35 +0000 (14:38 -0400)
move this after it figures out the calendar link from home page.
so it doesn't override it

static/10.phtml

index 4642746..f4dc3bb 100755 (executable)
@@ -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/');