From 32d46af17d2fd293595dd73503ccbe3f05f258dd Mon Sep 17 00:00:00 2001 From: mudrd8mz Date: Wed, 14 Nov 2007 21:36:16 +0000 Subject: [PATCH] Merged MDL-11332 from stable. --- admin/langdoc.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/admin/langdoc.php b/admin/langdoc.php index 489a17bd47..7b35279368 100755 --- a/admin/langdoc.php +++ b/admin/langdoc.php @@ -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; } -- 2.39.5