Sorry, Gustav, but all those record_exists calls were too much overhead.
It's better done by a check in the delete page... this will also
account for the case where a reply has been made since the post
was displayed on screen.
Now forum_print_user_discussions does not show discussions in hidden
forums, unless you are an an editing teacher.
** NOISY DIFF WARNING **
I don't know why this happens, but the only changes are in function
forum_print_user_discussions (10 lines or so).
Some strings (RSS related) has been moved from forum.php to moodle.php
to avoid suplicating them once per module.
It seems to work fine, please test...:-)
- Article's author is showed if present.
- In forum posts feeds, show post->subject instead of discussion->name
- Description contents in every article are passed to format_text() to
show contents like the rest of Moodle.
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...
that the link doesn't belong to the course being restored, then
the original link is mantained.
With this, the backup/restore should be finished. Now some
tests to check everything !!
All the conversion to some pseudo-codes are done at backup time.
In the restore process, every link is decoded to new ids.
For now, this is supported:
- In backup:
-all links to forums are encoded.
- In restore:
- all links to forums are decoded.
- from forums (post->message).
- from resources (resource->alltext).
The process requires a backup made with the same version (because it
has to be properly encoded at backup time). Old backups will work
without conversions at all.
Only tested with some little courses.
It would be perfect to have some "big" course to test it.
Please, test and feedback, ciao :-)