XML interface update to version 1.3, see htdocs/doc/xml/xml11.html
- new caches element <wpts> for additional waypoints - added time to logs <date> field - renamed pictures <attributes> field to <picattr> - added preview flag to <picattr> - fixed errors in v1.1 and 1.2 DTDs
This commit is contained in:
@@ -1403,6 +1403,10 @@
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
IF NEW.`type`=1 THEN
|
||||
IF (ISNULL(@XMLSYNC) OR @XMLSYNC!=1) THEN
|
||||
/* update caches modification date for XML interface handling */
|
||||
UPDATE `caches` SET `last_modified`=NEW.`last_modified` WHERE `cache_id`=NEW.`cache_id`;
|
||||
END IF;
|
||||
CALL sp_update_cache_listingdate(NEW.`cache_id`);
|
||||
END IF;
|
||||
END;");
|
||||
@@ -1422,6 +1426,10 @@
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
IF NEW.`type`=1 THEN
|
||||
IF (ISNULL(@XMLSYNC) OR @XMLSYNC!=1) THEN
|
||||
/* update caches modification date for XML interface handling */
|
||||
UPDATE `caches` SET `last_modified`=NEW.`last_modified` WHERE `cache_id`=NEW.`cache_id`;
|
||||
END IF;
|
||||
CALL sp_update_cache_listingdate(NEW.`cache_id`);
|
||||
END IF;
|
||||
IF OLD.`cache_id`!=NEW.`cache_id` AND OLD.`type`=1 THEN
|
||||
@@ -1434,6 +1442,10 @@
|
||||
FOR EACH ROW
|
||||
BEGIN
|
||||
IF OLD.`type`=1 THEN
|
||||
IF (ISNULL(@XMLSYNC) OR @XMLSYNC!=1) THEN
|
||||
/* update caches modification date for XML interface handling */
|
||||
UPDATE `caches` SET `last_modified`=NOW() WHERE `cache_id`=OLD.`cache_id`;
|
||||
END IF;
|
||||
CALL sp_update_cache_listingdate(OLD.`cache_id`);
|
||||
END IF;
|
||||
END;");
|
||||
|
||||
Reference in New Issue
Block a user