From: mudrd8mz Date: Sat, 7 Apr 2007 19:06:06 +0000 (+0000) Subject: Implements MDL-8808 X-Git-Url: http://git.mjollnir.org/gw?a=commitdiff_plain;h=b31303a6ed8fe22eb3c4266c368dad4477f14da1;p=moodle.git Implements MDL-8808 Now we can go to a missing docs/help files directly via a link. Thanks to Mitsuhiro Yoshida for the patch. --- diff --git a/admin/lang.php b/admin/lang.php index ad7f353db5..427eb5edd3 100644 --- a/admin/lang.php +++ b/admin/lang.php @@ -191,7 +191,7 @@ foreach ($files as $filekey => $file) { // check all the help files. if (!file_exists("$langdir/help/$file")) { - echo "

".get_string("filemissing", "", "$langdir/help/$file")."

"; + echo "wwwroot/$CFG->admin/langdoc.php?sesskey=$USER->sesskey&currentfile=help/$file\">" .get_string("filemissing", "", "$currentlang/help/$file") . "" . "
\n"; $somethingfound = true; continue; } @@ -202,7 +202,7 @@ } foreach ($files as $filekey => $file) { // check all the docs files. if (!file_exists("$langdir/docs/$file")) { - echo "

".get_string("filemissing", "", "$langdir/docs/$file")."

"; + echo "wwwroot/$CFG->admin/langdoc.php?sesskey=$USER->sesskey&currentfile=docs/$file\">" .get_string("filemissing", "", "$currentlang/docs/$file") . "" . "
\n"; $somethingfound = true; continue; }