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:
moodler
2002-12-29 14:39:52 +00:00
parent 4456254798
commit f1dacb2ed0
17 changed files with 26 additions and 2077 deletions
+4 -7
View File
@@ -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>";
?>