Commit graph

1058 commits

Author SHA1 Message Date
Mark Nelson
737aefb454 MDL-30377 forum: do not allow users to view not yet started or expired discussions 2012-11-20 12:17:21 +08:00
Mark Nelson
3774324174 MDL-33791 Portfolio: Fixed security issue with passing file paths. 2012-11-08 00:26:13 +01:00
Dan Poltawski
ec0a080a07 MDL-34527 - fix trailing whitespace 2012-11-05 13:28:16 +08:00
Sam Hemelryk
b3def15507 MDL-34527 forum: Fixed up a couple of SQL queries causing issues in Oracle. 2012-11-02 10:49:50 +13:00
Marina Glancy
722e6ba947 MDL-35339 Deprecate add_mod_to_section(), create new function course_add_cm_to_section()
Function add_mod_to_section() has very confusing arguments when object  looks like record from
table course_modules but field ->section refers to relative section number (course_sections.section).
In table course_modules the field section refers to course_sections.id.
Also add_mod_to_section() does not update table course_modules and does not call rebuild_course_cache()
which developer can forget to do afterwards.

- Added function course_add_cm_to_section()
- In the core code add_mod_to_section() is replaced with course_add_cm_to_section()
- Function add_mod_to_section() is deprecated
2012-10-15 14:08:13 +08:00
Dan Poltawski
a354add4c8 Merge branch 'MDL-33933-master' of https://github.com/mackensen/moodle 2012-10-02 09:43:38 +08:00
Tim Hunt
9695ff811b MDL-34657 user sorting: consistent sorting everywhere.
This commit coverts everything in the codebase to use the new
users_order_by_sql function when sorting lists of users. More details in
the bug.

Note that this does not change places where users are displayed in a
sortable table, and the sort order comes from the table.
2012-09-27 12:41:42 +01:00
Jody Steele
b770f5363d MDL-33933 mod_forum: fix incorrect capability check 2012-09-26 05:18:01 -07:00
Eloy Lafuente (stronk7)
ed4f7cccc3 MDL-35538 forum: take rid of forum_get_separate_modules()
100% incorrect function and not used in codebase at all.
2012-09-20 10:21:00 +02:00
Eloy Lafuente (stronk7)
b09764da07 MDL-33166 forum: fetch cmid to be used by capability checks. 2012-09-19 21:39:58 +02:00
Eloy Lafuente (stronk7)
a9c31deea8 Merge branch 'wip-mdl-33166' of git://github.com/rajeshtaneja/moodle 2012-09-19 00:38:41 +02:00
Frederic Massart
0da2ae21d1 MDL-30909 Accessibility: Improved access to reply form in forums 2012-09-18 14:54:24 +08:00
Rex Lorenzo
1659b1d1a8 MDL-33166 Forum: Adding capability mod/forum:allowforcesubscribe
Conflicts:

	mod/forum/version.php
2012-09-17 10:06:26 +08:00
Eloy Lafuente (stronk7)
60cb1a5f70 Revert "MDL-32125 mod_forum: updating subscription mode not reflected"
This reverts commit bee9656ca9.
2012-09-14 10:37:10 +02:00
Eloy Lafuente (stronk7)
464df58811 Revert "MDL-32125 mod_forum: updating subscription mode not reflected"
This reverts commit cf3b9054ba.
2012-09-14 10:36:58 +02:00
Sam Hemelryk
36b76c1ff9 Merge branch 'master_MDL-32125_forum_subscription_change_reflected' of git://github.com/kanikagoyal/moodle 2012-09-13 11:25:47 +12:00
Marina Glancy
406f8dd827 MDL-34223 increased performance in forum_get_file_info() for admins 2012-09-07 09:31:22 +08:00
Ankit Agarwal
d197ea4300 MDL-34549 libraries: Replace get_context_instance_by_id() by context::instance_by_id() 2012-08-24 11:30:10 +08:00
Dan Poltawski
d8ae194a37 Merge branch 'MDL-30370_master' of git://github.com/dmonllao/moodle 2012-08-20 11:21:59 +08:00
David Monllao
ce7382c959 MDL-30370 mod_forum - Removing duplicate seleted field in the DB query
Credit to Iñigo Zendegi
2012-08-15 17:03:07 +08:00
Eloy Lafuente (stronk7)
1135ae4908 Merge branch 'MDL-29192' of git://github.com/danpoltawski/moodle 2012-08-15 01:16:48 +02:00
Aparup Banerjee
50f0c35dd3 Merge branch 'master_MDL-34382_add_new_option_to_flag_modules_that_support_plagiarism_plugins' of git://github.com/kanikagoyal/moodle 2012-08-14 15:48:19 +08:00
Rossiani Wijaya
d1881bec56 MDL-34565 accessibility compliance for forum module: Add forform input text and select tag 2012-08-13 15:12:34 +08:00
Kanika Goyal
50da4ddd56 MDL-34382: Plagiarism API - add new option to flag modules that support the use of plagiarism plugins 2012-08-13 11:02:34 +05:30
Sam Hemelryk
e432bf2472 Merge branch 'MDL-34471-master' of git://github.com/ankitagarwal/moodle 2012-08-08 15:05:39 +12:00
Dan Poltawski
f271972817 MDL-29192 - clarify email_to_user call 2012-08-07 10:55:13 +08:00
David Monllao
b53f4d55c8 MDL-34711 mod_forum Calling forum_trigger_content_uploaded_event only with the course module set 2012-08-03 11:05:30 +08:00
Ankit Agarwal
bf0f06b1be MDL-34471 libraries: Replace all uses of get_context_instance() with respective context_XXXX::instance() method 2012-08-02 15:37:38 +08:00
David Monllao
ba4ee840db MDL-32931 mod_forum Polishing patch and taking into account courses without previous accesses 2012-07-27 09:08:23 +08:00
Tom Lanyon
28d638729d MDL-32931 mod_forum Change forum overview to avoid use of (potentially large and slow ) log table. 2012-07-27 09:08:23 +08:00
Sam Hemelryk
7bac687d55 Merge branch 'MDL-34153' of git://github.com/danpoltawski/moodle 2012-07-16 10:44:11 +12:00
Dan Poltawski
2e616b543b MDL-34153 mod_forum: create RFC-2822 compliant message-ids 2012-07-12 14:16:29 +08:00
Kanika Goyal
103e7cba16 MDL-32227: Plagiarism API - add support for plagiarism api to forum module 2012-07-11 23:36:03 +05:30
Marina Glancy
61a339e598 MDL-33948 mod_forum correctly passes files options to file_save_draft_area_files() 2012-07-02 14:11:55 +08:00
Adrian Greeve
35ca63c166 MDL-33297 - forum - workshop - glossary - data - Updated the check for files to allow students to see files they recently uploaded. 2012-06-20 10:49:18 +08:00
Sam Hemelryk
f48de74428 Merge branch 'MDL-33487' of git://github.com/danpoltawski/moodle 2012-06-06 10:06:17 +12:00
Dan Poltawski
92c1f40445 MDL-31460 mod_forum: fix trailing whitespace 2012-06-05 09:34:26 +08:00
Andrew Davis
74a37e1deb MDL-31460 mod_forum: added some controls to mod/forum/unsubscribeall.php to prevent the removal of subscriptions the user shouldnt be able to delete 2012-06-04 09:16:21 +07:00
Dan Poltawski
578d7f3dbd MDL-33487 - mod_forum: incorrect param ordering
Thanks to Garret Gengler for spotting it.
2012-06-01 23:35:26 +08:00
Sam Hemelryk
119e228621 Merge branch 'MDL-26562-23' of git://github.com/vadimonus/moodle 2012-05-24 11:00:09 +12:00
Dan Poltawski
b8644958e3 Merge branch 'w21_MDL-32379_m23_forumcron' of git://github.com/skodak/moodle 2012-05-22 13:05:28 +08:00
Marina Glancy
559276b153 MDL-32247,MDL-32831,MDL-32900 Use correct url building of file type icons
- function get_mimetypes_array() now contains also information about filetype groups and language strings
- use 'smart' human-readable mimetype description
- never determine filetype group based on filetype icon image! remove function mimeinfo_from_icon()
- get rid of class filetype_parser and file lib/filestorage/file_types.mm, replaced with functions file_get_typegroup(), file_extension_in_typegroup() and file_mimetype_in_typegroup()
- support multiple icon sizes, not only 16 and 32
- retrieve filetype icon only using proper functions file_..._icon() from lib/filelib.php throughout the code
- increase size of repository thumbnails to 90 and icons to 24 (will take effect when new icons exist)
2012-05-21 16:01:04 +08:00
Vadim Dvorovenko
5429460127 MDL-26562 2012-05-20 19:44:32 +07:00
Petr Skoda
103f34d88d MDL-32379 fix forum cron user caching 2012-05-19 18:56:19 +02:00
Dan Poltawski
7e89cbe0ac Merge branch 'MDL-31675-file-browsing' of git://github.com/mudrd8mz/moodle 2012-05-18 10:30:22 +08:00
Sam Hemelryk
3cb5b9ccf6 Merge branch 'MDL-31458' of git://github.com/danpoltawski/moodle 2012-05-16 09:12:17 +12:00
Dan Poltawski
93f11331e4 MDL-31458 forum: email subjects containing ampersand are sent as & 2012-05-11 15:25:26 +08:00
David Mudrak
9a1c075119 MDL-31675 File browsing support for the Forum module
AMOS BEGIN
 CPY [attachments,mod_forum],[areaattachment,mod_forum]
AMOS END
2012-05-09 03:00:16 +02:00
David Mudrak
b75ec1040e MDL-32853 Forum: fixed serving files from posts in a visible group
The previous code was copied from the part where emails are being sent.
In that case, we do not want to send copies of posts from other groups.
But in terms of access control, the user has full read access to posts
in any visible group.
2012-05-08 17:04:27 +02:00
Sam Hemelryk
b1851f4639 Merge branch 'MDL-31946-master' of git://github.com/ankitagarwal/moodle 2012-05-09 11:35:38 +12:00