Update get city call to use data abstract for all cities.
authorSteve Sutton <steve@gaslightmedia.com>
Mon, 9 Apr 2018 19:25:36 +0000 (15:25 -0400)
committerSteve Sutton <steve@gaslightmedia.com>
Mon, 9 Apr 2018 19:25:36 +0000 (15:25 -0400)
Don't filter the list of cities.

models/front/events/list.php

index 39fd7a0..f157589 100644 (file)
@@ -75,9 +75,9 @@ class GlmMembersFront_events_list extends GlmMembersFront_events_baseAction
 
 
         // get list cities to search by
-        require_once GLM_MEMBERS_EVENTS_PLUGIN_CLASS_PATH.'/data/dataEvents.php';
-        $cities = new GlmDataEvents($this->wpdb, $this->config);
-        $cityData = $cities->getEventsCities(true);
+        require_once GLM_MEMBERS_PLUGIN_CLASS_PATH.'/data/dataCities.php';
+        $cities = new GlmDataCities($this->wpdb, $this->config);
+        $cityData = $cities->getList();
 
         // If there's a pageslug as attribute then update the pageSlug
         if ( isset ( $actionData['request']['pageslug'] ) ) {