From ee04ced5909085bfee12e8b29a314090e72288f6 Mon Sep 17 00:00:00 2001 From: bastianonm Date: Wed, 29 Feb 2012 17:39:25 +0000 Subject: [PATCH] --- readme.txt | 2 +- wp-gpx-maps.php | 2 +- wp-gpx-maps_Utils.php | 4 ++-- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index 1777aa9..6cd756f 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_donations&business=basti Tags: maps, gpx, gps, graph, google maps, google chart, track, garmin Requires at least: 2.0.0 Tested up to: 3.3 -Stable tag: 1.1.8 +Stable tag: 1.1.9 License: GPLv2 or later Draws a gpx track with altitude graph diff --git a/wp-gpx-maps.php b/wp-gpx-maps.php index 9be2753..9a63384 100644 --- a/wp-gpx-maps.php +++ b/wp-gpx-maps.php @@ -3,7 +3,7 @@ Plugin Name: WP-GPX-Maps Plugin URI: http://www.darwinner.it/ Description: Draws a gpx track with altitude graph -Version: 1.1.8 +Version: 1.1.9 Author: Bastianon Massimo Author URI: http://www.pedemontanadelgrappa.it/ License: GPL diff --git a/wp-gpx-maps_Utils.php b/wp-gpx-maps_Utils.php index 489ac9f..d9d3658 100644 --- a/wp-gpx-maps_Utils.php +++ b/wp-gpx-maps_Utils.php @@ -157,7 +157,7 @@ if ($speed == 0) { - $datediff = (float)date_diff($lastTime,$time); + $datediff = (float)my_date_diff($lastTime,$time); //echo "------------$time-------$lastTime-----"; //echo "------------$datediff------------"; if ($datediff>0) @@ -311,7 +311,7 @@ return sqrt((float)pow((float)$ele1-(float)$ele2,2)+(float)pow((float)$d,2)); } - function date_diff($old_date, $new_date) { + function my_date_diff($old_date, $new_date) { $t1 = strtotime($new_date); $t2 = strtotime($old_date);