Skip to content

Commit e099e71

Browse files
committed
Fixed output directory
1 parent 7e79dbd commit e099e71

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

lib/Weathermap.class.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3813,7 +3813,7 @@ function MakeHTML($imagemapname = "weathermap_imap")
38133813
if ($this->imageuri != '') {
38143814
$html .= sprintf(
38153815
'<img id="wmapimage" src="%s" width="%d" height="%d" border="0" usemap="#%s"',
3816-
!empty($this->outputdirname) ? $this->outputdirname . "/" . $this->imageuri : $this->imageuri,
3816+
$this->imageuri,
38173817
$this->width,
38183818
$this->height,
38193819
$imagemapname

weathermap.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ public static function menu()
2121
$submenu = ' <ul class="dropdown-menu scrollable-menu">';
2222
$count = 0;
2323
foreach ($files as $file => $data) {
24-
$submenu .= ' <li><a href="/plugins/' . self::$name . '/' . htmlspecialchars($data['page']) . '"><i class="fa fa-map fa-fw fa-lg" aria-hidden="true"></i> ' . htmlspecialchars($data['title']) . '</a></li>';
24+
$submenu .= ' <li><a href="/plugins/' . self::$name . '/output/' . htmlspecialchars($data['page']) . '"><i class="fa fa-map fa-fw fa-lg" aria-hidden="true"></i> ' . htmlspecialchars($data['title']) . '</a></li>';
2525
$count++;
2626
}
2727
$submenu .= ' </ul>';

0 commit comments

Comments
 (0)