Plugin Directory

Changeset 1244797


Ignore:
Timestamp:
09/14/2015 05:31:40 AM (10 years ago)
Author:
trackhs
Message:

1.7.1 fixes

Location:
track-connect/trunk
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • track-connect/trunk/includes/api/request.php

    r1244784 r1244797  
    77    protected $url;
    88
    9     public function __construct($domain,$token){
     9    public function __construct($domain,$token,$debug = 0){
    1010        $this->token = $token;
    11         $this->domain = $domain;       
     11        $this->domain = $domain;   
     12        $this->debug =  $debug;
    1213        $this->endpoint = (strtoupper($domain) == 'HSR')?'http://hsr.trackstaging.info':'https://'.strtolower($domain).'.trackhs.com';
    13         //$this->endpoint = 'http://hsr.jreed.trackhs.com';
     14        $this->endpoint = 'http://hsr.jreed.trackhs.com';
    1415    }
    1516   
     
    4445        }
    4546        $unitsRemoved = count($results);
    46 
     47       
     48        if($this->debug == 1){
     49            print_r(json_decode($units['body']));
     50        }
     51       
    4752        foreach(json_decode($units['body'])->response as $id => $unit){
    4853       
     
    230235
    231236        $unitArray = [];
    232 
     237       
     238        if($this->debug == 1){
     239            print_r(json_decode($units['body']));
     240        }
     241       
    233242        if(json_decode($units['body'])->success == false){
    234243            return [
  • track-connect/trunk/includes/views/archive-listing.php

    r1244784 r1244797  
    1313$checkout = ($_REQUEST['checkout'])? $_REQUEST['checkout']:false;
    1414$bedrooms = ($_REQUEST['bedrooms'])? $_REQUEST['bedrooms']:false;
     15$debug = ($_REQUEST['track_debug'])? $_REQUEST['track_debug']:0;
    1516$availableUnits = false;
    1617$checkAvailability = false;
     
    2122    $checkAvailability = true;
    2223    require_once( __DIR__ . '/../api/request.php' );
    23     $request = new plugins\api\pluginApi($options['wp_listings_domain'],$options['wp_listings_token']);
     24    $request = new plugins\api\pluginApi($options['wp_listings_domain'],$options['wp_listings_token'],$debug);
    2425    $availableUnits = $request->getAvailableUnits($checkin,$checkout,false); 
    2526}
  • track-connect/trunk/plugin.php

    r1244784 r1244797  
    77    Author URI: http://www.trackhs.com
    88
    9     Version: 1.7
     9    Version: 1.7.1
    1010
    1111    License: GNU General Public License v2.0 (or later)
     
    5555
    5656    define( 'WP_LISTINGS_URL', plugin_dir_url( __FILE__ ) );
    57     define( 'WP_LISTINGS_VERSION', '1.7' );
     57    define( 'WP_LISTINGS_VERSION', '1.7.1' );
    5858
    5959    /** Load textdomain for translation */
  • track-connect/trunk/readme.txt

    r1244784 r1244797  
    44Requires at least: 3.7
    55Tested up to: 4.2.3
    6 Stable tag: 1.7
     6Stable tag: 1.7.1
    77
    88Creates and syncs listing-type posts from TRACK PM, a cloud-based property management system (www.trackhs.com).
Note: See TracChangeset for help on using the changeset viewer.