Details
Description
The langdoc_preview_url function doesn't work as expected on nested subdirectories of the help tree!
I suggest this fix on line 246 of the admin/langdoc.php file
$url = '/help.php?module='.implode('/',array_slice($currentpathexp,0,count($currentpathexp)-1)).'&file='.end($currentpathexp);
instead of
$url = '/help.php?module='.$currentpathexp[0].'&file='.$currentpathexp[1];
as not all the paths are LANGDIR/help/module/file... eg LANGDIR/help/enrol/authorize/aba.html !!!
I plan to rewrite whole langdoc.php and incorporate it into lang.php. I will keep this issue in mind. Thank you.