Commit graph

1058 commits

Author SHA1 Message Date
Ankit Agarwal
ecb6b25b0d MDL-31946 forum: Removing deprecated function folder_get_participants 2012-05-08 14:50:22 +08:00
Petr Skoda
0209f96485 MDL-32762 fix E_STRICT issue in forum 2012-05-06 10:54:37 +02:00
Tim Hunt
df710f84d0 MDL-32357 Try to fix unread post notification for blog-style forums.
I know that showing unread posts is not 100% blog-style, but I think
it is useful functionality, therefore, I chose to fix it, rather than,
say, disable it completely.

I think this fix will only affect blog-style forums since
forum_print_latest_discussions is only called with mode 'plain' in
three places:
1. Blog-style forums - the case we want to fix,
2. Site news forum, and
3. Social course format.

In all cases, having read tracking work properly seems like the
right thing to do.
2012-04-28 18:57:05 +01:00
David Mudrak
261cbbacc1 MDL-32471 preview thumbnails support for activity modules
Activity module's xxx_pluginfile() now accepts the $options parameter
that is to be passed to the send_stored_file() function.
2012-04-24 12:09:45 +02:00
Petr Skoda
6b04fdc0b6 MDL-32400 improve module generators
Module generators are using standard *_add_instance() methods which helps with testing, it also updates grades and calendar events if used.
2012-04-15 14:16:59 +02:00
Sam Hemelryk
3211569a6a Revert "MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag"
This reverts commit f9f281b8fe.
2012-04-11 17:18:58 +12:00
Kanika Goyal
cf3b9054ba MDL-32125 mod_forum: updating subscription mode not reflected 2012-04-02 09:55:12 +05:30
Kanika Goyal
bee9656ca9 MDL-32125 mod_forum: updating subscription mode not reflected 2012-04-02 09:52:53 +05:30
Rossiani Wijaya
f9f281b8fe MDL-30843 and MDL-30842 - accessibility compliance: Add <label> for form input text and select tag 2012-03-30 16:26:58 +08:00
Petr Skoda
f20edd5208 MDL-32094 fix various E_STRICT compatibility problems 2012-03-18 18:37:24 +01:00
Charles Fulton
2d20d5488a MDL-31664 fix invalid boolean to string comparison 2012-03-12 17:02:38 +13:00
Eloy Lafuente (stronk7)
d8c9ff403b Merge branch 's17_MDL-30973_file_docblock_master' of git://github.com/dongsheng/moodle 2012-03-01 00:25:18 +01:00
Andrew Davis
8260050dbd MDL-31739 mod_forum: added phpdocs for forum_get_email_message_id() 2012-02-24 10:48:24 +07:00
Eloy Lafuente (stronk7)
c3ca963d81 Merge branch 'MDL-30698_multiple_emails' of git://github.com/andyjdavis/moodle 2012-02-21 01:43:53 +01:00
Sam Hemelryk
e6e4fe4f43 Merge branch 'MDL-29402-master' of https://github.com/mackensen/moodle 2012-02-21 10:44:00 +13:00
Andrew Davis
e54816bcf8 MDL-30698 message: changed message ID to be a hash 2012-02-17 09:21:02 +07:00
Andrew Davis
1376b0ddf8 MDL-30698 forum: made message ID genuinely unique to prevent mail servers dropping emails the look like duplicates 2012-02-17 09:21:02 +07:00
Dongsheng Cai
d2b7803e5a MDL-30973 Files API, check and update DocBlock 2012-02-15 12:48:57 +08:00
Charles Fulton
1e966b8ae3 MDL-29402 QandA forum questions should be emailed 2012-02-14 06:01:05 -08:00
Andrew Davis
a153c9f2fe MDL-30999 grade: updated Grade API phpdocs 2012-02-14 14:04:19 +07:00
Eloy Lafuente (stronk7)
dee8d39f4d Merge branch 'w04_MDL-31081_m23_forumindex' of git://github.com/skodak/moodle 2012-01-23 21:17:54 +01:00
Petr Skoda
73eaccf60a MDL-31081 limit query to one course in forum_get_subscribed_forums()
This improves performance on the forum index page. Credit goes to Mark Nielsen.
2012-01-22 14:54:43 +01:00
Petr Skoda
b1693caebc MDL-31185 fix missing CFG in forum_get_posts_by_user() 2012-01-21 16:17:06 +01:00
Petr Skoda
b85b25ebb8 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-18 01:03:20 +01:00
Aparup Banerjee
0fa557d5fd Merge branch 'MDL-30260_disable_messages' of git://github.com/andyjdavis/moodle 2011-12-01 11:24:47 +08:00
Sam Hemelryk
7bebeb2a29 Merge branch 'wip-mdl-30421' of git://github.com/rajeshtaneja/moodle 2011-12-01 15:48:20 +13:00
Aparup Banerjee
e8012802db MDL-30202 forum : whitespace cleanup 2011-11-30 15:44:16 +08:00
Aparup Banerjee
20ab954b3c Merge branch 'MDL-30202' of git://github.com/rwijaya/moodle 2011-11-30 15:36:14 +08:00
Rajesh Taneja
35b81f27ca MDL-30421 forum: resolved error in single discussion forum, if more then one record is present 2011-11-30 14:38:23 +08:00
Rossiani Wijaya
52eebcc8df MDL-30202 forum rss: move check to the end of if statement to prevent unnecessary db process if rss is disable 2011-11-30 14:00:33 +08:00
Andrew Davis
d8aa5ec7a0 MDL-30260 message: added /message/upgrade.txt, checked calls to message_send() are supplying user.emailstop and improved message_send() to handle message requests that don't 2011-11-30 10:02:45 +08:00
Sam Hemelryk
223b3ce3a0 MDL-30273 whitespace cleanup 2011-11-29 16:47:21 +13:00
Sam Hemelryk
925ae95824 Merge branch 'wip-MDL-30273-master' of git://github.com/abgreeve/moodle 2011-11-29 16:46:47 +13:00
Rossiani Wijaya
dbf4433d75 MDL-30202 forum module: fixed code regression for displaying rss feed icon (link) 2011-11-28 17:49:14 +08:00
Marina Glancy
beb180689b MDL-30214: Added function forum_get_file_info() to fix the bug with choosing recent forum files in filepicker 2011-11-28 11:52:57 +08:00
Rossiani Wijaya
db8312d23c MDL-27735 Q&A forum: add new caps to add question. By default, teacher, editing teacher and manager role has the capability to add new question 2011-11-22 15:26:44 +08:00
Charles Fulton
5a1038bb47 MDL-30273 prevent the creation of discussions in simple single forums 2011-11-18 14:11:49 +08:00
Sam Hemelryk
b750c6b388 Merge branch 'MDL-24577-master-1' of git://git.luns.net.uk/moodle 2011-11-17 14:53:38 +13:00
Eloy Lafuente (stronk7)
8ac9d33f49 Merge branch 'MDL-26647-master' of git://github.com/sammarshallou/moodle
Conflicts:
	lib/db/upgrade.php
	report/completion/index.php
	report/progress/index.php
	version.php
2011-11-11 03:37:55 +01:00
Tony Levi
bce6b3c70a MDL-24577: Fix mark all posts in this discussion read doesn't work completely correct 2011-11-07 12:59:26 +00:00
Petr Skoda
bc196cbe21 MDL-30151 finally remove mod/forum:initialsubscriptions and improve perf
The 'mod/forum:initialsubscriptions' was introduced in 1.7 as a workaround for missing enrolment info - the mod_form forum help was not even updated to mention this capability. Now that we have reliable enrolment info we can significantly improve both enrol and unenrol performance. Hopefully majority of users will not miss this capability...
2011-11-06 19:58:16 +01:00
sam marshall
5c60a847f5 MDL-26647 (1) 'extrauserselectorfields' -> 'showuseridentity', add capability
This change:
- Renames the existing setting 'extrauserselectorfields' to 'showuseridentity'
  in preparation for using it in more places. (Upgrade change, new version.)
- Adds a new capability moodle/site:viewuseridentity, now required in order
  to see the extra fields; if you don't have the capability, you don't see them
- Slightly improves the display of extra fields in user selector list; it used
  to be like 'sam marshall, 01234567, email@address' and is now
  'sam marshall [01234567, email@address]' ie the fields are in square
  brackets
- Turns feature on for the group selector - the feature was enabled for other
  user selectors but not for the group selector. Tim did the disable code, he
  thinks this may be to do with more people having access to group selector -
  probably not a problem now it is controlled by capability.
2011-11-04 13:57:08 +00:00
Petr Skoda
1344b0ca7f MDL-29982 improve can_access_course()
Hopefully faster and more accurate.
2011-10-29 09:45:54 +02:00
Sam Hemelryk
a161d96f3a MDL-28615 forum: Fixed up a couple of minor regressions 2011-10-05 11:08:50 +13:00
Sam Hemelryk
6fdcc0d44f MDL-28615 forum: Fixed missing context regression 2011-10-04 16:37:16 +13:00
Sam Hemelryk
61ab8f0749 MDL-28615 forum: Revised enrol_sharing_course to use the new enrol_get_shared_courses and fixed permission checking in forum_user_can_see_post 2011-10-03 11:23:30 +13:00
Sam Hemelryk
4b71542394 MDL-28615 mod_forum: Fixed the users page that shows all of the users posts 2011-09-29 14:20:58 +13:00
Sam Hemelryk
8ebbb06adf MDL-29189 mutlilang Reviewed the uses of course shortname and ensured things are being formatted consistently 2011-09-08 09:30:27 +12:00
sam marshall
3e4c243500 MDL-27001 'Show description' feature part 3: Implementation for all modules
For modules that still used the 'old' generic object return from _get_coursemodule_info instead of returning a cached_cm_info object, I changed them to use the new format as part of this. This made a few areas of code regarding onclick links slightly nicer.
2011-09-06 11:03:06 +01:00
Petr Skoda
11ec4ed51d MDL-28981 fix forum_user_can_post() call params 2011-08-21 15:50:23 +02:00