From 9dd11d3070d0dce2ea20d6e9aa4898e0b5022cc0 Mon Sep 17 00:00:00 2001 From: borisneubert <> Date: Sat, 21 Jul 2012 07:51:52 +0000 Subject: [PATCH] fix: if commandref.html is found in $modpath/www/pgm2 then this is assumed to be the $FW_docdir git-svn-id: https://svn.fhem.de/fhem/trunk@1744 2b470e98-0d58-463d-a4d8-8e2adae1ed80 --- fhem/webfrontend/pgm2/01_FHEMWEB.pm | 2 ++ 1 file changed, 2 insertions(+) diff --git a/fhem/webfrontend/pgm2/01_FHEMWEB.pm b/fhem/webfrontend/pgm2/01_FHEMWEB.pm index d875ead63..d14ba1370 100755 --- a/fhem/webfrontend/pgm2/01_FHEMWEB.pm +++ b/fhem/webfrontend/pgm2/01_FHEMWEB.pm @@ -316,6 +316,8 @@ FW_SetDirs() { # doc dir if(-d "$FW_dir/docs") { $FW_docdir = "$FW_dir/docs"; + } elsif(-f "$FW_dir/pgm2/commandref.html") { + $FW_docdir = "$FW_dir/pgm2"; } elsif(-d "$attr{global}{modpath}/docs") { $FW_docdir = "$attr{global}{modpath}/docs"; } else {