Added new function, import_backup_file_silently
Changed everything that prints stuff to check for a constant first.
Backup_flush checks a different constant, this is so that output can still
get flushed to the browser when necessary but not print <li>s everywhere.
Please test this!
This patch allows the much requested selection of individual instances of modules within a course to backup and restore.
It needs A LOT of testing and probably some prettyifying too.
Complete refactoring of the system that was really awful (my fault!).
Now everything is in its place and working like a charm, making things really
easier to be implemented and amplied. Bug 3678
(http://moodle.org/bugs/bug.php?op=show&bugid=3678)
(http://moodle.org/mod/forum/discuss.php?d=26530)
Note: Everything is merged from stable but the quiz module because it has
other changes not merged for now. I've skyped a message to Gustav about it.
Merged from MOODLE_15_STABLE
by the restore process. Such conversion is performed for
every backup file prior to 2005041100.
Wiki internal links are dinamically changed and then,
converted to Markdown. Bye, Wiki! ;-)
- Reference resources are now history -> converted to HTML pages
(the backup/restore has been taken care of, Eloy)
- HTML pages and Text pages can now have popups!
- Summaries are not shown when they should be blank (eg if they
just contain a <br /> as the HTML editor usually inserts.
- Fixed some notices for PHP 5
to resources (from resources and forums) are re-encoded in backup/restore.
I could reduce the code size but for now I prefer to have it this looong
form to clarify what it's doing.
Please, test, test and test...