2
0
mirror of https://github.com/fhem/fhem-mirror.git synced 2025-03-10 09:16:53 +00:00

Hotfix to cover installations with pgm2 files in www/pgm2

git-svn-id: https://svn.fhem.de/fhem/trunk@1734 2b470e98-0d58-463d-a4d8-8e2adae1ed80
This commit is contained in:
borisneubert 2012-07-16 18:13:02 +00:00
parent ad5811d850
commit 2b03278ed1

View File

@ -307,6 +307,8 @@ FW_SetDirs() {
# icon dir # icon dir
if(-d "$FW_dir/images") { if(-d "$FW_dir/images") {
$FW_icondir = "$FW_dir/images"; $FW_icondir = "$FW_dir/images";
} elsif( -d "$FW_dir/pgm2") {
$FW_icondir = "$FW_dir/pgm2";
} else { } else {
$FW_icondir = $FW_dir; $FW_icondir = $FW_dir;
} }
@ -315,8 +317,7 @@ FW_SetDirs() {
$FW_docdir = "$FW_dir/docs"; $FW_docdir = "$FW_dir/docs";
} elsif(-d "$attr{global}{modpath}/docs") { } elsif(-d "$attr{global}{modpath}/docs") {
$FW_docdir = "$attr{global}{modpath}/docs"; $FW_docdir = "$attr{global}{modpath}/docs";
} } else {
else {
$FW_docdir = $FW_dir; $FW_docdir = $FW_dir;
} }
# css dir # css dir
@ -328,6 +329,8 @@ FW_SetDirs() {
# gplot dir # gplot dir
if(-d "$FW_dir/gplot") { if(-d "$FW_dir/gplot") {
$FW_gplotdir = "$FW_dir/gplot"; $FW_gplotdir = "$FW_dir/gplot";
} elsif(-d "$FW_dir/pgm2") {
$FW_gplotdir = "$FW_dir/pgm2";
} else { } else {
$FW_gplotdir = $FW_dir; $FW_gplotdir = $FW_dir;
} }