Changeset 2775916
- Timestamp:
- 08/26/2022 06:13:45 AM (4 years ago)
- Location:
- rezgo/trunk
- Files:
-
- 3 edited
-
readme.txt (modified) (2 diffs)
-
rezgo.php (modified) (2 diffs)
-
rezgo/include/class.rezgo.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
rezgo/trunk/readme.txt
r2775181 r2775916 6 6 Tested up to: 6.0.1 7 7 Requires PHP: 5.2 8 Stable tag: 4.1.1 48 Stable tag: 4.1.15 9 9 10 10 Sell your tours, activities, and events on your WordPress website using Rezgo. … … 133 133 134 134 == Changelog == 135 = 4.1.15 = 136 * PHP 8 compatibility fixes 137 135 138 = 4.1.14 = 136 139 * Escape function fixes -
rezgo/trunk/rezgo.php
r2775181 r2775916 5 5 Plugin URI: https://wordpress.org/plugins/rezgo/ 6 6 Description: Connect WordPress to your Rezgo account and accept online bookings directly on your website. 7 Version: 4.1.1 47 Version: 4.1.15 8 8 Author: Rezgo 9 9 Author URI: http://www.rezgo.com … … 54 54 define('REZGO_PLUGIN_NAME', 'rezgo'); 55 55 define('REZGO_PLUGIN_DIR', plugin_dir_path(__FILE__)); 56 define('REZGO_PLUGIN_VERSION', '4.1.1 4');56 define('REZGO_PLUGIN_VERSION', '4.1.15'); 57 57 58 58 require_once('rezgo/include/page_header.php'); -
rezgo/trunk/rezgo/include/class.rezgo.php
r2769142 r2775916 1568 1568 $obj->type = 1; 1569 1569 1570 if($xml->day ->$xd) {1571 $obj->cond = $cond = (string) $xml->day ->$xd->attributes()->condition;1572 if($xml->day ->$xd->item[0]) {1570 if($xml->day[$xd]) { 1571 $obj->cond = $cond = (string) $xml->day[$xd]->attributes()->condition; 1572 if($xml->day[$xd]->item[0]) { 1573 1573 // we want to convert the attribute to something easier to use in the template 1574 1574 $n=0; 1575 foreach($xml->day ->$xd->item as $i) {1575 foreach($xml->day[$xd]->item as $i) { 1576 1576 if($i) { 1577 1577 $obj->items[$n] = new stdClass(); … … 1583 1583 } 1584 1584 } else { 1585 if($xml->day ->$xd->item) {1585 if($xml->day[$xd]->item) { 1586 1586 $obj->items[0] = new stdClass(); 1587 $obj->items[0]->uid = $xml->day ->$xd->item->uid;1588 $obj->items[0]->name = $xml->day ->$xd->item->name;1589 $obj->items[0]->availability = $xml->day ->$xd->item->attributes()->value;1587 $obj->items[0]->uid = $xml->day[$xd]->item->uid; 1588 $obj->items[0]->name = $xml->day[$xd]->item->name; 1589 $obj->items[0]->availability = $xml->day[$xd]->item->attributes()->value; 1590 1590 } 1591 1591 }
Note: See TracChangeset
for help on using the changeset viewer.