Fix width parameters with percentages having no effect when running on French systems. See Tiki issue #6731

This would affect developer machines, not any MERN servers.

Index: foncierpedia/lib/wiki-plugins/wikiplugin_img.php
===================================================================
--- foncierpedia.orig/lib/wiki-plugins/wikiplugin_img.php
+++ foncierpedia/lib/wiki-plugins/wikiplugin_img.php
@@ -972,7 +972,7 @@ function wikiplugin_img( $data, $params
 				$src .= '&display';
 			}
 			if (!empty($scale) && empty($urlscale[0])) {
-				$src .= '&scale=' . $scale;
+				$src .= '&scale=' . number_format($scale, 2, '.', '');
 			} elseif ((!empty($imgdata['max']) && $imgdata['thumb'] != 'download')
 					&& (empty($urlthumb) && empty($urlmax[0]) && empty($urlprev))
 			) {
Index: foncierpedia/tiki-download_file.php
===================================================================
--- foncierpedia.orig/tiki-download_file.php
+++ foncierpedia/tiki-download_file.php
@@ -184,6 +184,11 @@ if ( ! empty($info['path']) ) {
 	die;
 }
 
+if (array_key_exists('scale', $_GET)) {
+	// Workaround comma instead of dot in scale value. The IMG plugin used to generate a src value with a comma when LC_ALL is set on French systems.
+	$_GET['scale'] = str_replace(',', '.', $_GET['scale']);
+}
+
 // ETag: Entity Tag used for strong cache validation.
 if ( ! isset($_GET['display']) || isset($_GET['x']) || isset($_GET['y']) || isset($_GET['scale']) || isset($_GET['max']) || isset($_GET['format']) ) {
   // if image will be modified, emit a different ETag for modifications.
