[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
--image-uri isn't set properly in 0.97
- From: Marcus Stoegbauer <ms@xxxxxxxxx>
- Subject: --image-uri isn't set properly in 0.97
- Date: Fri, 19 Feb 2010 13:25:17 +0100
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
- Prev by Date: Re: [php-weathermap] New feature select weathermap in 0.97
- Next by Date: AUTO: Sweeney, Paul is out of the office. (returning 22/02/2010)
- Previous by thread: New feature select weathermap in 0.97
- Next by thread: AUTO: Sweeney, Paul is out of the office. (returning 22/02/2010)
- Index(es):