* fix uom

* fix file not found
This commit is contained in:
bastianonm 2018-03-16 22:08:58 +00:00
parent fc03515cc1
commit 60b8c67a56
5 changed files with 11 additions and 8 deletions

View File

@ -798,8 +798,7 @@ Author URI: http://www.devfarm.it/
max: graphDist[graphDist.length-1],
// Include a dollar sign in the ticks
callback: function(value, index, values) {
var fpt = _formats[0];
return Math.round(value, fpt.dec) + fpt.suf;
return Math.round(value, l_x.dec) + l_x.suf;
}
}
            }]

View File

@ -5,7 +5,7 @@ Donate link: https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_i
Tags: maps, gpx, gps, graph, chart, google maps, track, garmin, image, nextgen-gallery, nextgen, exif, OpenStreetMap, OpenCycleMap, Hike&Bike, heart rate, heartrate, cadence
Requires at least: 2.0.0
Tested up to: 4.9.4
Stable tag: 1.5.03
Stable tag: 1.5.04
Draws a gpx track with altitude graph. You can also display your nextgen gallery images in the map.
@ -153,6 +153,9 @@ Yes!
1. Altitude & Speed & Hearth rate
== Changelog ==
= 1.5.04 =
* fix uom
* fix file not found
= 1.5.03 =
* fix random error
= 1.5.02 =

View File

@ -3,7 +3,7 @@
Plugin Name: WP-GPX-Maps
Plugin URI: http://www.devfarm.it/
Description: Draws a GPX track with altitude chart
Version: 1.5.03
Version: 1.5.04
Author: Bastianon Massimo
Author URI: http://www.devfarm.it/
*/
@ -62,7 +62,7 @@ function enqueue_WP_GPX_Maps_scripts_admin($hook)
function enqueue_WP_GPX_Maps_scripts() {
wp_register_script('chartjs', plugins_url( '/js/Chart.min.js', __FILE__ ), array(), "2.7.2" );
wp_register_script('WP-GPX-Maps', plugins_url( '/js/WP-GPX-Maps.js', __FILE__ ), array('jquery','googlemaps','chartjs'), "1.5.02" );
wp_register_script('WP-GPX-Maps', plugins_url( '/js/WP-GPX-Maps.js', __FILE__ ), array('jquery','googlemaps','chartjs'), "1.5.031" );
$wpgpxmaps_googlemapsv3_apikey = get_option('wpgpxmaps_googlemapsv3_apikey');
@ -153,7 +153,7 @@ function handle_WP_GPX_Maps_folder_Shortcodes($attr, $content='') {
foreach($files as $file) {
if (substr($file, - 4) == ".gpx" ) {
if (strtolower(substr($file, - 4)) == ".gpx" ) {
$gpx = $folder . DIRECTORY_SEPARATOR . $file;
$points = wpgpxmaps_getPoints($gpx, $pointsoffset, $donotreducegpx, $distanceType);

View File

@ -8,7 +8,7 @@
if ( $is_admin != 1 )
return;
$gpxRegEx = '/.gpx$/';
$gpxRegEx = '/.gpx$/i';
if ( isset($_POST['clearcache']) )
{

View File

@ -66,7 +66,8 @@
function wp_gpx_maps_sitePath()
{
return substr(get_home_path(), 0, -1);
return substr(substr(__FILE__, 0, strrpos(__FILE__,'wp-content')), 0, -1);
//return substr(get_home_path(), 0, -1);
}
function gpxFolderPath()