Merged MDL-11332 from stable.

This commit is contained in:
mudrd8mz 2007-11-14 21:36:16 +00:00
parent 43457dc87c
commit 32d46af17d

View File

@ -243,7 +243,7 @@ function langdoc_preview_url($currentfile) {
$currentfile = substr($currentfile, 5);
$currentpathexp = explode('/', $currentfile);
if (count($currentpathexp) > 1) {
$url = '/help.php?module='.$currentpathexp[0].'&file='.$currentpathexp[1];
$url = '/help.php?module='.implode('/',array_slice($currentpathexp,0,count($currentpathexp)-1)).'&file='.end($currentpathexp);
} else {
$url = '/help.php?module=moodle&file='.$currentfile;
}