Changeset 2209033
- Timestamp:
- 12/10/2019 06:55:14 AM (6 years ago)
- Location:
- locatoraid/trunk
- Files:
-
- 9 edited
-
config/_common.php (modified) (1 diff)
-
happ2/lib-wp/hcWpBase6.php (modified) (1 diff)
-
happ2/modules/http/uri.php (modified) (3 diffs)
-
happ2/modules/session/lib.php (modified) (1 diff)
-
locatoraid.php (modified) (2 diffs)
-
modules/front/assets/js/front.js (modified) (2 diffs)
-
modules/front/view_form.php (modified) (2 diffs)
-
modules/search/radius_controller.php (modified) (3 diffs)
-
readme.txt (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
locatoraid/trunk/config/_common.php
r2191985 r2209033 1 1 <?php if (! defined('ABSPATH')) exit; // Exit if accessed directly 2 $config['app_version'] = '3.6. 8';2 $config['app_version'] = '3.6.9'; 3 3 // $config['dbprefix_version'] = 'v1'; 4 4 -
locatoraid/trunk/happ2/lib-wp/hcWpBase6.php
r1864143 r2209033 203 203 204 204 // session_name( $session_name ); 205 // @session_start(); 205 @session_start(); 206 // session_start(); 206 207 // ob_start(); 207 208 } -
locatoraid/trunk/happ2/modules/http/uri.php
r1740734 r2209033 4 4 protected $hca = 'hca'; 5 5 protected $hcs = 'hcs'; 6 7 // protected $joinArray = '|'; 8 protected $joinArray = '_'; 6 9 7 10 protected $mode_urls = array(); … … 107 110 $return['raw_params'] = $params; 108 111 $return['params'] = hc2_parse_args($params); 112 113 foreach( array_keys($return['params']) as $k ){ 114 $v = $return['params'][$k]; 115 if( is_array($v) ){ 116 continue; 117 } 118 119 $pos = strpos( $v, $this->joinArray ); 120 121 if( FALSE === $pos ){ 122 continue; 123 } 124 if( 0 === $pos ){ 125 continue; 126 } 127 128 $v = explode( $this->joinArray, $v ); 129 $return['params'][$k] = $v; 130 } 109 131 } 110 132 … … 265 287 foreach( $p as $p2 ){ 266 288 if( is_array($p2) ){ 267 $p2 = join( '|', $p2);289 $p2 = join($this->joinArray, $p2); 268 290 } 269 291 $p2 = urlencode( $p2 ); 270 292 $final_p[] = $p2; 271 293 } 272 $p = join( '|', $final_p);294 $p = join($this->joinArray, $final_p); 273 295 } 274 296 else { -
locatoraid/trunk/happ2/modules/session/lib.php
r1970559 r2209033 82 82 $this->my_prefix = $app_short_name . '_' . $this->my_prefix; 83 83 // echo "INIT SESSION FOR '$app_short_name'<br>"; 84 // echo 'SESSION ID = ' . session_id() . '<br>'; 84 85 85 86 if( session_id() == '' ){ -
locatoraid/trunk/locatoraid.php
r2191985 r2209033 4 4 Plugin URI: https://www.locatoraid.com/ 5 5 Description: Store locator plugin 6 Version: 3.6. 86 Version: 3.6.9 7 7 Author: hitcode.com 8 8 Author URI: https://www.locatoraid.com/ … … 12 12 13 13 if( ! defined('LC3_VERSION') ){ 14 define( 'LC3_VERSION', 36 8);14 define( 'LC3_VERSION', 369 ); 15 15 } 16 16 -
locatoraid/trunk/modules/front/assets/js/front.js
r2191985 r2209033 97 97 var replace_to = search[k]; 98 98 if( Array.isArray(replace_to) ){ 99 replace_to = replace_to.join(' |');99 replace_to = replace_to.join('_'); 100 100 } 101 101 search_url = search_url.replace( to_replace, replace_to ); … … 195 195 var replace_to = search[k]; 196 196 if( Array.isArray(replace_to) ){ 197 replace_to = replace_to.join(' |');197 replace_to = replace_to.join('_'); 198 198 } 199 199 search_url = search_url.replace( to_replace, replace_to ); -
locatoraid/trunk/modules/front/view_form.php
r2191985 r2209033 10 10 11 11 if( isset($params['where-product']) && $params['where-product'] ){ 12 if( FALSE !== strpos($params['where-product'], ' |') ){12 if( FALSE !== strpos($params['where-product'], '_') ){ 13 13 // if( isset($form_inputs['product']) && method_exists($form_inputs['product'], 'options') ){ 14 14 if( isset($form_inputs['product']) ){ … … 22 22 $options = $input->options(); 23 23 24 $filteredProducts = explode( ' |', $params['where-product'] );24 $filteredProducts = explode( '_', $params['where-product'] ); 25 25 $filteredProducts = array_map( function($e){ return trim($e); }, $filteredProducts ); 26 26 $filteredProducts = array_combine( $filteredProducts, $filteredProducts ); -
locatoraid/trunk/modules/search/radius_controller.php
r2124830 r2209033 73 73 if( is_array($v) ){ 74 74 $command_args[] = array($tk, 'IN', $v); 75 $link_params[$tk] = array('IN', $v); 75 // $link_params[$tk] = array('IN', $v); 76 $link_params[$tk] = $v; 76 77 } 77 78 else { … … 121 122 $command_args[] = 'count'; 122 123 $radiuses = $uri->param('radius'); 124 123 125 if( ! $radiuses ){ 124 126 $radiuses = array( 10, 20, 50, 100, 200, 500 ); … … 177 179 } 178 180 181 // _print_r( $link_params ); 182 179 183 $link = $this->app->make('/http/uri') 180 184 ->url('/search', $this_link_params) -
locatoraid/trunk/readme.txt
r2193451 r2209033 85 85 == Changelog == 86 86 87 = 3.6.9 = 88 * BUG: multiple products checkbox in the search form may have worked incorrectly. 89 87 90 = 3.6.8 = 88 91 * BUG: the "limit" shortcode parameter may have worked incorrectly.
Note: See TracChangeset
for help on using the changeset viewer.