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

@ -198,7 +198,7 @@ $string['fieldmappings'] = 'Field Mappings';
$string['mappingwarning'] = 'All old fields not mapped to a new field will be lost and all data in that field will be removed.';
$string['blank'] = 'Blank';
$string['presetwarning'] = 'Saving as a preset publishes this template across the entire site. All users will be able to use it in their databases.';
$string['presetinfo'] = 'Saving as a preset will publish this template. Other users may be able to use it in their databases.';
$string['deletewarning'] = 'Are you sure you want to delete this preset?';
$string['importsuccess'] = 'The preset has been successfully applied.';
$string['addentries'] = 'Add entries';