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

static/10.phtml

index f4dc3bb..82593b8 100755 (executable)
@@ -1,9 +1,5 @@
 <?php
 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);
-
     $calendarDateArray = filter_var_array(
         $_REQUEST,
         array(
@@ -24,6 +20,9 @@ if (defined('COMMON_EVENTS') && COMMON_EVENTS) {
         $_REQUEST['search'] = 1;
         $_REQUEST['startMonth'] = $_REQUEST['endMonth'] = date('m/d/Y', $time);
     }
+    $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';
     }