mirror of
https://github.com/moodle/moodle.git
synced 2025-08-04 16:36:37 +02:00
Implements MDL-8808
Now we can go to a missing docs/help files directly via a link. Thanks to Mitsuhiro Yoshida for the patch.
This commit is contained in:
parent
fc3d4000d5
commit
b31303a6ed
1 changed files with 2 additions and 2 deletions
|
@ -191,7 +191,7 @@
|
||||||
|
|
||||||
foreach ($files as $filekey => $file) { // check all the help files.
|
foreach ($files as $filekey => $file) { // check all the help files.
|
||||||
if (!file_exists("$langdir/help/$file")) {
|
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&currentfile=help/$file\">" .get_string("filemissing", "", "$currentlang/help/$file") . "</a>" . "<br />\n";
|
||||||
$somethingfound = true;
|
$somethingfound = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
@ -202,7 +202,7 @@
|
||||||
}
|
}
|
||||||
foreach ($files as $filekey => $file) { // check all the docs files.
|
foreach ($files as $filekey => $file) { // check all the docs files.
|
||||||
if (!file_exists("$langdir/docs/$file")) {
|
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&currentfile=docs/$file\">" .get_string("filemissing", "", "$currentlang/docs/$file") . "</a>" . "<br />\n";
|
||||||
$somethingfound = true;
|
$somethingfound = true;
|
||||||
continue;
|
continue;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue