Changes to how documentation works. A thin PHP interface now fetches
files from the language packs. If a file isn't available in the current language, then English is used.
This commit is contained in:
+4
-7
@@ -7,11 +7,6 @@
|
||||
|
||||
$file = clean_filename($file);
|
||||
|
||||
if (!file_exists($file)) {
|
||||
error("404 - File not found");
|
||||
}
|
||||
|
||||
|
||||
if ($id) {
|
||||
if (! $course = get_record("course", "id", $id)) {
|
||||
error("Course is misconfigured");
|
||||
@@ -28,9 +23,11 @@
|
||||
"<A HREF=\"view.php?file=contents.html\">$strdocumentation</A>");
|
||||
|
||||
}
|
||||
|
||||
|
||||
echo "<BLOCKQUOTE>";
|
||||
include($file);
|
||||
|
||||
document_file($file, true);
|
||||
|
||||
echo "</BLOCKQUOTE>";
|
||||
|
||||
?>
|
||||
|
||||
Reference in New Issue
Block a user