]> git.mjollnir.org Git - moodle.git/commitdiff
Merged MDL-11332 from stable.
authormudrd8mz <mudrd8mz>
Wed, 14 Nov 2007 21:36:16 +0000 (21:36 +0000)
committermudrd8mz <mudrd8mz>
Wed, 14 Nov 2007 21:36:16 +0000 (21:36 +0000)
admin/langdoc.php

index 489a17bd479e907912b6d1047b7df374ca2372d7..7b352793688357d30dec79e1ef83129cc92f0c87 100755 (executable)
@@ -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].'&amp;file='.$currentpathexp[1];
+            $url = '/help.php?module='.implode('/',array_slice($currentpathexp,0,count($currentpathexp)-1)).'&amp;file='.end($currentpathexp); 
         } else {
             $url = '/help.php?module=moodle&amp;file='.$currentfile;
         }