1391 Commits

Author SHA1 Message Date
stronk7
d44d02a28c MDL-17227 forum: seekey-ize forum prune (split). Merged from 19_STABLE 2008-11-16 22:46:23 +00:00
sam_marshall
cad56b17dd MDL-15648: minor bug with earlier patch 2008-11-14 13:34:39 +00:00
stronk7
1639731bf8 MDL-17227 forum: add sesskey to post/discussion deletion. Merged from 19_STABLE 2008-11-14 08:52:35 +00:00
mjollnir_
62e7195480 MDL-16587 portfolio export formats - support straight file export not just RICHHTML (html + attachments) , it doesn't make sense in things like box.net 2008-11-11 19:54:50 +00:00
skodak
cbc08f3bfc MDL-17130 dml: eliminated $CFG->dbfamily 2008-11-05 00:12:30 +00:00
stronk7
0e442226f3 MDL-14952 - roles: 'moodle/legacy:guest' was preventing admins to post
new discussions in fron page if $CFG->defaultfrontpageroleid = guest. Merged from 19_STABLE
2008-11-01 00:30:55 +00:00
stronk7
4436a63b64 MDL-14998 - roles: add mod/forum:viewdiscussion protection to forum_get_discussions() ; merged from 19_STABLE 2008-10-31 21:50:08 +00:00
nicolasconnault
ddaf465b57 MDL-16341 Fixed a missing $context in has_capability check for portfolio export, forum lib 2008-10-31 09:54:07 +00:00
skodak
fa6081b3d0 MDL-16903 mod/forum: undefined course context when forum subscription not allowed; merged from MOODLE_19_STABLE 2008-10-16 20:46:45 +00:00
mjollnir_
42579aeeb8 MDL-16587: mod/forum portfolio implementation: fixed warning. 2008-10-13 10:10:14 +00:00
mjollnir_
6be1dcae99 MDL-16587 bit of a large refactor of the portfolio formats. still more to come. 2008-10-11 17:33:20 +00:00
scyrma
de2047e7a9 Forum/MDL-14558: Prevent users from subscribing or getting subscribed to forums where subscriptions are not allowed. (merge) 2008-10-07 09:28:47 +00:00
tjhunt
16851b22ad MDL-16676 All references to the text.html and emoticons.html files need to be updated to point to text2.html and emoticons2.html 2008-09-25 10:04:01 +00:00
skodak
9971cc0ce1 MDL-16617 fixed forum name filtering - thanks Mark Nielsen; merged from mOODLE_19_STABLE 2008-09-25 07:12:27 +00:00
nicolasconnault
274e2947a2 MDL-16486 Only using one test $DB connection. Completed most of the implementation. Tests working well now. 2008-09-22 07:06:08 +00:00
poltawski
83199e454e MDL-16542 - missing global $USER 2008-09-16 21:32:09 +00:00
nicolasconnault
b9c639d6c2 MDL-16483 Refactored install/upgrade code into lib/adminlib. Created an intermediate MoodleUnitTestCase class that overrides simpletest's constructor, destructor and setup/teardown methods. All moodle unit tests must extend this class. 2008-09-16 12:19:43 +00:00
mjollnir_
b2a9505b22 MDL-16514 - adding format to forum mod_form and fixing regression in single forum type add instance 2008-09-15 15:55:11 +00:00
nicolasconnault
795ad63034 MDL-15666 Testing a matrix of portfolio caller/plugin. Starting the new cleanup method in unit tests (max id) 2008-09-15 13:18:44 +00:00
mjollnir_
37f03ea00b MDL-15666 - change all the portfolio plugins and callers to use exceptions
rather than relying on return values (send_package and prepare_package)

move zipping of temporary files into the exporter class so it can be overridden during unit tests

fix a small todo in mahara plugin
2008-09-12 11:22:15 +00:00
moodler
81de8d8e64 MDL-16474 Make counts of posts look nicer, and use the scale to show the results, not just a number 2008-09-12 07:26:56 +00:00
mjollnir_
054dd03b80 MDL-15666 - adding extra test to forum portfolio caller 2008-09-11 14:03:41 +00:00
mjollnir_
27dda89ffe MDL-15666 - changes to the portfolio caller tests
now that i changed the api again (adding load_data), rather than add a call to it to
all the callers, i abstracted the caller setup into the parent class (portfoliolib_test)
2008-09-11 13:47:40 +00:00
mjollnir_
0d06b6fda7 MDL-16423 - big refactor of the way callers interact with the portfolio code
added two new contract methods to the caller class, load_data and expected_callbackargs (static)
this means that the base class is the only place that needs a constructor
and that no data loading happens in the constructor
this in turn means we can check callback argument validity much more lightly

also completely remoted portfolio_add_button function and replaced with a class
as the argument list was getting out of control.  it's now much more readable.
2008-09-11 13:42:58 +00:00
mjollnir_
b4fecea22d MDL-16391 - forum posts with no attachments get to be PORTFOLIO_FORMAT_HTML 2008-09-09 11:25:45 +00:00
mjollnir_
d8606b2078 MDL-15833 - make the portfolio callers use the helper functions to detect expected time. 2008-09-09 09:32:16 +00:00
nicolasconnault
d5849d59ae MDL-15666 Added database and forum caller unit tests 2008-09-09 09:17:49 +00:00
mjollnir_
adf0ff69fa MDL-15768 - fixing missing cap check in export whole forum discussion 2008-09-09 09:10:11 +00:00
moodler
1470c8a47a Added maxattachments field for setting max number of attachments 2008-09-08 05:58:19 +00:00
moodler
30a9aff589 MDL-14722 Added new maxattachments setting at admin and forum level to
set the maximum number of attachments for forum posts.   Default: 1.

Works, but still needs a bit of polishing to deal with re-editing posts (to stop people going above maxattachments)

Also fixed documentation for attachments.
2008-09-08 05:46:42 +00:00
skodak
7e55d513a1 MDL-16072 fixed area browsing 2008-09-07 23:22:23 +00:00
skodak
a060b744e8 MDL-16072 adding missing lang strings 2008-09-07 22:37:32 +00:00
skodak
9fcb74407c MDL-15906 filepicker support in all file functions in formslib 2008-09-07 22:35:37 +00:00
skodak
d6f7cbfd98 MDL-16374 support for file browsing in modules 2008-09-06 17:00:43 +00:00
mjollnir_
1e14c62f10 MDL-16360 - better forum implementation 2008-09-05 17:23:22 +00:00
mjollnir_
ea0de12f10 MDL-16360 - added support for mime-style subformat detection for portfolio supported formats
works well with flickr plugin (tested by uploading an image as a forum attachment and being offered flickr plugin but not for normal attachments)
2008-09-05 17:07:22 +00:00
mjollnir_
3bb8a2c75c MDL-16322 - switch calls to print_error to throw exceptions in portfolio callers 2008-09-04 10:38:44 +00:00
scyrma
927ce88759 MDL-15405: Add support for relinking of inline media 2008-09-04 01:56:50 +00:00
mjollnir_
c9e745468f MDL-15758 - added back full forum exports 2008-09-03 12:05:31 +00:00
moodler
ad78615cb3 MDL-15405 Final bit to make forum attachments work with filepicker 2008-09-03 06:07:36 +00:00
dongsheng
94eff36397 "MDL-16284, fix mismatch tracking state title, merged from MOODLE_19_STABLE" 2008-09-03 03:01:09 +00:00
skodak
b229ac31b1 MDL-12224 no more {$CFG->prefix} in HEAD 2008-09-02 22:10:11 +00:00
mjollnir_
43c90ed1f8 MDL-16232 - fix bad link in portfolio breadcrumbs 2008-09-02 16:10:51 +00:00
jerome
c38965fbfa MDL-12224: preload ratings for the specific user and only for his discussions, merged from 19 2008-09-02 09:51:11 +00:00
moodler
99bd2ec8aa MDL-15405 Send the correct filearea forum_attachment (not that we really use it) 2008-09-02 03:00:51 +00:00
moodler
03efef4a7e FIx fileareas being sent to mform for forum post 2008-08-29 06:57:10 +00:00
stronk7
493f08200b Add missing $DB 2008-08-28 18:04:16 +00:00
skodak
455a8fede8 MDL-15497 fixed notice when deleting forum 2008-08-27 15:50:33 +00:00
skodak
4e6a816a98 fixed whitespace 2008-08-27 15:48:46 +00:00
skodak
fa686bc4e0 MDL-16220 allow deleting of all files attached to context 2008-08-27 11:46:48 +00:00