Fixes related to presets and MDL-6755.

The original code was shocking once I started reviewing it, and even
after heavy editing I'm still not happy with it, but at least it works
more like it was supposed to.

Needs more cleaning up to make it clearer and probably safer.

Also, presets can now contain langage packs and they'll be used.
The image gallery is an example.
This commit is contained in:
moodler 2006-10-02 17:24:54 +00:00
parent 44abaca047
commit 8303eb8447
9 changed files with 510 additions and 416 deletions

View file

@ -78,7 +78,8 @@
$bodytag .= '" ';
print_header_simple($data->name, '', "<a href='index.php?id=$course->id'>$strdata</a> -> $data->name",
'', '', true, '', navmenu($course, $cm), '', $bodytag);
'', '', true, update_module_button($cm->id, $course->id, get_string('modulename', 'data')),
navmenu($course, $cm), '', $bodytag);
print_heading(format_string($data->name));