Skip to content

Commit

Permalink
Merged MDL-11332 from stable.
Browse files Browse the repository at this point in the history
  • Loading branch information
mudrd8mz committed Nov 14, 2007
1 parent 43457dc commit 32d46af
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion admin/langdoc.php
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}
Expand Down

0 comments on commit 32d46af

Please sign in to comment.