Commit graph

10313 commits

Author SHA1 Message Date
Dan Marsden
522aafc73b SCORM MDL-24273 fix typo in SCORM 2004 code 2010-11-16 00:16:56 +00:00
David Mudrak
b0f5d070e7 MDL-23978 portfolio: do not cleanup images with portfolio URI scheme
The problem was in the order of the content preparing. Now when the
filters are always skipped (they have to) we must always run
format_text() first. That will prepare nice HTML in which we just
rewrite the portfolio URIs.
Note that we are still calling clean_text() so that we do not export
malicious code for portfolios like File download. In the future, this
may be changed, made format specific or even per-export configurable.
As a side product of the patch, I have re-enabled online assignment
portfolio export and switched $options->para to false consistently.
2010-11-15 22:59:06 +00:00
Helen Foster
fca0c7b9af MDL-25205 help string improvement 2010-11-15 20:47:07 +00:00
Tim Hunt
16cad79ba9 quiz editing MDL-25205 help for the order and paging page. 2010-11-15 17:00:38 +00:00
Tim Hunt
6577832390 quiz reports MDL-25206 Make it more obvious how to review the students responses. 2010-11-15 16:41:42 +00:00
Eloy Lafuente
3b953472ac MDL-25227 glossary - fix delete_instance() and clean orphaned entries 2010-11-15 15:16:57 +00:00
David Mudrak
f3cc571af2 MDL-25225 forum: fixed discussion control layout
The display mode selector is supposed to display in the middle of the
row. Move discussion selector should be on the right, portfolio export
selector on the left. Thanks Sam Marshall for the report and testing the
patches.
2010-11-15 14:18:24 +00:00
Helen Foster
ca6dd3edc5 MDL-24405 reverting lang strings thanks to Chris Collman for review 2010-11-15 12:19:37 +00:00
Sam Marshall
15e48a1a49 Forum MDL-25170 Discussion move feature should have button so you don't do it by accident (again) 2010-11-15 10:41:26 +00:00
David Mudrak
afe38b79c6 MDL-21657 fixed regression in function call after its API change
The API of the function forum_print_posts_threaded() was changed in
63e87951e6 but this call was not updated.
This led to not displaying other replies when replying to a forum post.
2010-11-15 10:02:44 +00:00
Helen Foster
7796f9b56e MDL-24405 lang string rewording and removing capitalization 2010-11-12 20:40:37 +00:00
Eloy Lafuente
f395cbddbd MDL-23479 backup - now restoring workshop logs, thanks David for support! 2010-11-12 16:15:26 +00:00
David Mudrak
e7ff48d284 Fixed workshop view logging
add_to_log() used to log whole workshop name instead of just id. Thanks
to Eloy for spotting that.
2010-11-12 11:54:53 +00:00
David Mudrak
4588b17b2d workshop: create empty legacy tables to keep DB consistency with install.xml 2010-11-12 10:33:13 +00:00
Sam Hemelryk
d067fc474c javascript MDL-25013 YUI modules are now recursively loaded and a stacktrace stored when this occurs 2010-11-12 05:26:47 +00:00
Dongsheng Cai
b160915d6b "MDL-25175, fixed groups_get_group parameter" 2010-11-12 03:34:49 +00:00
Eloy Lafuente
0f66acede0 MDL-22135 - logs restore, course and activities + cleanup 2010-11-11 19:46:04 +00:00
Tim Hunt
d2af10140a forum files MDL-25167 files in the post file area were not moved when the post was moved or deleted.
Also, I refactord some code out of forum_move_post and into a new method file_storage::move_area_files_to_new_context. I hope that is OK.
2010-11-11 18:58:06 +00:00
David Mudrak
d8c4a74e29 Text filters can not be applied on the content exported to the portfolio
Filters can replace text with images (smilies, temporary TeX images
etc.), links to glossaries or databases or embedded media players.
Therefore it is important to disable filter processing during portfolio
export.
2010-11-11 18:47:57 +00:00
David Mudrak
f357d2f8eb Fixed portfolio UI integration in forum thread
There was not enough space to put yet another discussion thread control
widget.
2010-11-11 18:04:43 +00:00
Tim Hunt
a9efae50e3 question upgrade MDL-16094 fix up earlier mistakes in the text format upgrade.
There was a mistake in the text format upgrade in the question bank. The wrong conversions were performed, and the wrong arguments were passed to text_to_html in the conversions that were done.

Also, not all the calls to format_text had been updated to use the values in the new format columns.

I think this change fixes everything, but I have only had very limited time to test it. I am committing it anyway, because that seems to me to be the best way to maximise testing. I think that the new code is certainly better than the old code was.
2010-11-11 17:32:25 +00:00
David Mudrak
104c06ac9d Incorrect order of content processing during forum post portfolio export
During the portfolio export, portfolio_rewrite_pluginfile_urls() must be
called before format_text(). Otherwise some filters can interfere with
internal raw record syntax. For example, the Algebra Notation uses @@
for its own purposes and it used to break @@PLUGINFILE@@ placeholder.
2010-11-11 16:42:53 +00:00
Andrew Davis
d38755249d message MDL-25148 using method on $PAGE to allow or disallow popup notifications 2010-11-11 06:11:43 +00:00
Sam Hemelryk
41a42c1d02 mod-wiki MDL-25003 Wiki history diff view now uses divs for layout rather than table which fixes the nasty overflow problems that were occurring 2010-11-11 04:02:37 +00:00
Petr Skoda
80cfa4537c MDL-24239 scorm upgrade includes handling of extracted archives 2010-11-11 03:43:04 +00:00
Dan Marsden
78b203ca3c SCORM MDL-25124 report attempts correctly for SCORM 1.2 objects that don't return a score.raw - thanks to Greg Franklin for report and fix! 2010-11-10 23:40:00 +00:00
Dan Marsden
c557816312 SCORM 2004 MDL-18756 - only return previous datamodel elements on re-launch if cmi.exit is set to "suspend" 2010-11-10 23:22:31 +00:00
Dan Marsden
564938629d SCORM MDL-24579 remove badly formatted debugging code - thanks to Peter Chamberlain for report. 2010-11-10 21:50:49 +00:00
Dan Marsden
ba1959f8cf SCORM MDL-24579 fix CMILongIdentifier regex (SCORM 2004) - thanks to Peter Chamberlain for report/fix 2010-11-10 21:37:47 +00:00
David Mudrak
cdff9eead3 NOMDL workshop more referential integrity checks
As reported by Trudy Koedooder at http://moodle.org/mod/forum/discuss.php?d=161322
there can be some orphaned grade records without the referenced
assessment. It threw upgrade error. Such grades are now just ignored
during the upgrade.
2010-11-10 16:02:07 +00:00
Sam Marshall
2380ac57d6 Unit tests MDL-24993 Disable obsolete portfolio tests until such time as somebody can fix them 2010-11-10 12:06:24 +00:00
Dongsheng Cai
9bb0a9e7d8 MDL-23587 Italicise the names of unedited pages 2010-11-10 09:40:31 +00:00
Dongsheng Cai
86cfd27314 MDL-25070 fixed Wiki Search results in double breadcrumb node 2010-11-10 09:35:45 +00:00
Dongsheng Cai
d6887efca0 MDL-23636, fixed text when deleting or editing wiki comments 2010-11-10 09:24:57 +00:00
Dongsheng Cai
e0f0c304fc MDL-23677, fixed commenting on creole format wiki page 2010-11-10 09:09:14 +00:00
Dongsheng Cai
b9ec7dd288 MDL-24491, removed print_object in wiki upgrade code 2010-11-10 08:22:16 +00:00
Petr Skoda
72ea011706 MDL-24955 improved add discussion logic for users that are not enrolled yet 2010-11-10 02:49:00 +00:00
Petr Skoda
8e18e1ecdc MDL-24955 improved reply link logic for users that are not enrolled yet 2010-11-10 02:43:56 +00:00
Petr Skoda
45ff8a80d3 MDL-24955 improved detection of available self enrol plugins 2010-11-10 02:14:27 +00:00
Dan Marsden
79ef247aa3 SCORM MDL-25985 wrong key to check $usertracks array - thanks to Valerian for report/fix 2010-11-09 22:55:58 +00:00
Sam Marshall
702a206cd3 Unit tests MDL-24993 Disable obsolete portfolio tests until such time as somebody can fix them 2010-11-09 17:09:13 +00:00
Sam Hemelryk
01d0aceb64 mod-forum MDL-25113 Fixed up navigation for forum when browsing a discussion. 2010-11-09 08:59:53 +00:00
Andrew Davis
99fa98899b forum MDL-24850 added ratings to mod/forum/user.php 2010-11-09 08:34:30 +00:00
Sam Hemelryk
8cda6c2a3a mod-forum MDL-25113 Fixed up navbar display for forum threads 2010-11-09 03:43:40 +00:00
Petr Skoda
54ab8769cd MDL-24955 prevent infinite redirect loop when not enrolled and self enrol not available 2010-11-09 01:53:28 +00:00
Dongsheng Cai
231b0b30c4 MDL-23138 WIKI removed standard_head_html, use standard $OUTPUT->header() 2010-11-08 08:16:26 +00:00
Dongsheng Cai
77b8c5cafe MDL-23134, use foreach to read recordset instead of valid(), next() 2010-11-08 08:05:15 +00:00
Dongsheng Cai
467902f2ef MDL-25097, fixed CSRF in chat_ajax.php 2010-11-08 07:59:55 +00:00
Dongsheng Cai
52f3088482 MDL-23135, added defined('MOODLE_INTERNAL') || die; to old ewiki code 2010-11-08 07:52:54 +00:00
Dongsheng Cai
d2807da895 MDL-23139, fixed CSRF in wiki editing page 2010-11-08 07:43:18 +00:00