14 Commits

Author SHA1 Message Date
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
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
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
Petr Skoda
39790bd805 MDL-24321 switching to stdClass in /mod/ 2010-09-21 08:37:36 +00:00
Penny Leach
ebb7e78267 portfolio/leap2a MDL-23955 updated leap2a support to 2010-07 version 2010-08-28 10:00:27 +00:00
Petr Skoda
64f93798d4 MDL-22950 adding new component column to the files table, unfortunately this change requires changes in all 2.0dev code, please review all custom code that was already upgraded to 2.0; fixing multiple problems and regressions in mod/assignment 2010-07-03 13:37:13 +00:00
Penny Leach
21512d5861 portfolio MDL-21079 make sure that mod/forum/locallib.php includes main forum lib 2010-05-19 17:42:47 +00:00
Penny Leach
599777551b portfolio MDL-21034 fixed syntax error caused by too long lines and patching 2010-03-23 06:26:42 +00:00
Penny Leach
b2488578dc portfolio MDL-21034 add extra leap2a metadata to forum export 2010-03-22 14:34:15 +00:00
Penny Leach
2b76d67441 portfolio/forunm MDL-21034 add on the discussion title
when exporting a full forum thread as leap2a to the selection entry
2010-03-21 17:20:16 +00:00
Penny Leach
549c1ae680 portfolio MDL-21508 fixed broken forum attachment export
- fixed a lot of logic in the format conflict stuff
- fixed a very specific bug in forum export when exporting a single
  attachment.
2010-03-16 19:07:53 +00:00
Penny Leach
c2d2f7a987 portfolio/forum MDL-21156 fixed a small error in attached files when exporting a full thread 2010-02-26 15:28:43 +00:00
Penny Leach
5991a52c37 portfolio/forum MDL-21156 added portfolio url rewriting to forum export 2010-01-04 03:28:59 +00:00
Penny Leach
24ba58ee9a portfolio MDL-21079 be more selective about including libraries.
this involves moving all formslib includes to where they're actually needed.
it also moves the portfolio stuff from assignment,data,chat,forum and glossary
into a locallib.php which involved creating it for many of those modules.
2009-12-12 11:27:07 +00:00