diff --git a/fhem/FHEM/98_help.pm b/fhem/FHEM/98_help.pm index 184771387..dc8963094 100644 --- a/fhem/FHEM/98_help.pm +++ b/fhem/FHEM/98_help.pm @@ -26,10 +26,10 @@ sub CommandHelp { $lang //= AttrVal('global','language','en'); $lang = (lc($lang) eq 'de') ? '_DE' : ''; - $mod =~ s/\?/help/; - if($mod) { + $mod = "help" if($mod eq "?"); + my $internals = "attributes,command,commands,devspec,global,perl"; $mod = lc($mod); my $modPath = AttrVal('global','modpath','.'); @@ -85,44 +85,16 @@ sub CommandHelp { } - my $url_prefix; - - if(AttrVal('global','exclude_from_update','') =~ m/commandref/) { - $url_prefix = "http://fhem.de/commandref$lang.html"; - } else { - $url_prefix = "$FW_ME/docs/commandref$lang.html"; - } - - # replace tags with a - # working real link to commandref - $output =~ s, tags with a + # working real link to commandref + $output =~ s,$output"; } - return "$output"; + return $output; } else { # mod