]> git.mjollnir.org Git - moodle.git/commitdiff
Implements MDL-8808
authormudrd8mz <mudrd8mz>
Sat, 7 Apr 2007 19:06:06 +0000 (19:06 +0000)
committermudrd8mz <mudrd8mz>
Sat, 7 Apr 2007 19:06:06 +0000 (19:06 +0000)
Now we can go to a missing docs/help files directly via a link. Thanks to Mitsuhiro Yoshida for the patch.

admin/lang.php

index ad7f353db5e6b3479ba8a44a73c2582942bc0874..427eb5edd3e499fbd5a28eb5de569cea1ae49385 100644 (file)
     
         foreach ($files as $filekey => $file) {    // check all the help files.
             if (!file_exists("$langdir/help/$file")) {
-                echo "<p><font color=\"red\">".get_string("filemissing", "", "$langdir/help/$file")."</font></p>";
+                echo "<a href=\"$CFG->wwwroot/$CFG->admin/langdoc.php?sesskey=$USER->sesskey&amp;currentfile=help/$file\">" .get_string("filemissing", "", "$currentlang/help/$file") . "</a>" . "<br />\n";
                 $somethingfound = true;
                 continue;
             }
         }
         foreach ($files as $filekey => $file) {    // check all the docs files.
             if (!file_exists("$langdir/docs/$file")) {
-                echo "<p><font color=\"red\">".get_string("filemissing", "", "$langdir/docs/$file")."</font></p>";
+                echo "<a href=\"$CFG->wwwroot/$CFG->admin/langdoc.php?sesskey=$USER->sesskey&amp;currentfile=docs/$file\">" .get_string("filemissing", "", "$currentlang/docs/$file") . "</a>" . "<br />\n";
                 $somethingfound = true;
                 continue;
             }