This commit is contained in:
bastianonm 2012-02-29 17:39:25 +00:00
parent 3089f5fc16
commit ee04ced590
3 changed files with 4 additions and 4 deletions

View File

@ -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 Tags: maps, gpx, gps, graph, google maps, google chart, track, garmin
Requires at least: 2.0.0 Requires at least: 2.0.0
Tested up to: 3.3 Tested up to: 3.3
Stable tag: 1.1.8 Stable tag: 1.1.9
License: GPLv2 or later License: GPLv2 or later
Draws a gpx track with altitude graph Draws a gpx track with altitude graph

View File

@ -3,7 +3,7 @@
Plugin Name: WP-GPX-Maps Plugin Name: WP-GPX-Maps
Plugin URI: http://www.darwinner.it/ Plugin URI: http://www.darwinner.it/
Description: Draws a gpx track with altitude graph Description: Draws a gpx track with altitude graph
Version: 1.1.8 Version: 1.1.9
Author: Bastianon Massimo Author: Bastianon Massimo
Author URI: http://www.pedemontanadelgrappa.it/ Author URI: http://www.pedemontanadelgrappa.it/
License: GPL License: GPL

View File

@ -157,7 +157,7 @@
if ($speed == 0) if ($speed == 0)
{ {
$datediff = (float)date_diff($lastTime,$time); $datediff = (float)my_date_diff($lastTime,$time);
//echo "------------$time-------$lastTime-----"; //echo "------------$time-------$lastTime-----";
//echo "------------$datediff------------"; //echo "------------$datediff------------";
if ($datediff>0) if ($datediff>0)
@ -311,7 +311,7 @@
return sqrt((float)pow((float)$ele1-(float)$ele2,2)+(float)pow((float)$d,2)); 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); $t1 = strtotime($new_date);
$t2 = strtotime($old_date); $t2 = strtotime($old_date);