[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

--image-uri isn't set properly in 0.97



Hi,

the --image-uri parameter from the command line doesn't work anymore
with version 0.97, the code is looking for $this->imageuri, which as
far as I can tell isn't in use anymore. 
There are 2 other occurences of $this->imageuri which might need to
get changed to.

The diff below (changing $this->imageuri to $this->get_hint('imageuri'))
fixes the problem. 

Best regards,

   Marcus

--- weathermap/Weathermap.class.php	2010-01-17 12:05:14.000000000 +0100
+++ weathermap-changed/Weathermap.class.php	2010-02-19 13:20:49.000000000 +0100
@@ -3908,9 +3908,9 @@
 	$html='';
 
 	$html .= '<div class="weathermapimage" style="margin-left: auto; margin-right: auto; width: '.$this->width.'px;" >';
-	if ($this->imageuri != '') { $html.=sprintf(
+	if ($this->get_hint('imageuri') != '') { $html.=sprintf(
 		'<img id="wmapimage" src="%s" width="%d" height="%d" border="0" usemap="#%s"',
-		$this->imageuri,
+		$this->get_hint('imageuri'),
 		$this->width,
 		$this->height,
 		$imagemapname); 

-- 
man-da.de GmbH, AS8365                          Phone: +49 6151 16-6956
Petersenstr. 30                                   Fax: +49 6151 16-3050
D-64287 Darmstadt                                  e-mail: ms@xxxxxxxxx
Geschäftsführer Marcus Stögbauer                AG Darmstadt, HRB 94 84

Copyright 1994-2005, by Howard Jones. howie@thingy.com