Commit Graph

506 Commits

Author SHA1 Message Date
moodler 831a8bae99 Extra caching and efficiency in forum_cron 2006-10-29 05:39:26 +00:00
moodler 9f79ed8a3c More rogue AS keywords MDL-7207 2006-10-25 09:02:30 +00:00
skodak 7429a293b7 fixed When unassigning a role, forum_role_unassign unsubscribes the user even if you have other roles there MDL-7120 2006-10-24 20:20:50 +00:00
moodler c50d4d9039 Make sure that guests see the button to add a new discussion (it will
prompt them to enrol later)
2006-10-23 13:19:46 +00:00
moodler 1de8317f92 Better handling for guest in forums MDL-7125 2006-10-23 04:53:56 +00:00
moodler 2fb18d1cdc FIxed some HTML warnings 2006-10-22 08:12:14 +00:00
moodler 3443f0a7b2 Removed a HTML warning & --> & 2006-10-22 07:59:04 +00:00
toyomoyo 0e4429dfec fixed an infinite loop 2006-10-20 05:08:42 +00:00
moodler 09a47d4232 Slight tidy-up for forum search form 2006-10-20 03:33:18 +00:00
skodak 4cbb779866 temporary patch for the forum trouble that is breaking installs MDL-7114 2006-10-19 22:42:44 +00:00
stronk7 1dd6d5a8a2 Adding support for the new mssql_n driver 2006-10-19 22:12:55 +00:00
skodak 8a2bccf264 Notice when creating one forum... MDL-7063 2006-10-18 19:58:13 +00:00
skodak 24ec651269 Fix forum reset - remove "DELETE .. USING ... " mysqlisms MDL-7053 2006-10-17 21:05:34 +00:00
toyomoyo b866247504 fix for MDL-6968 2006-10-17 05:18:02 +00:00
toyomoyo 33dc359ccc proper fix for MDL-6926 2006-10-17 04:45:21 +00:00
toyomoyo 9b6c468b16 fix for MDL-6926 2006-10-17 04:37:18 +00:00
moodler 2179989947 Merged bogon fix from stable 2006-10-10 07:43:19 +00:00
vyshane ee5cdf3466 Removed teacher forums from course reset. 2006-10-10 05:23:44 +00:00
vyshane 25b75c6053 Merged fix for MDL-6537 2006-10-10 05:20:43 +00:00
stronk7 97ab73aad4 Add odbc_msql dbtype to a bunch of places. 2006-10-09 22:55:55 +00:00
vyshane 1a7cdb11b4 Merged fixes for MDL-2583 2006-10-05 03:18:29 +00:00
vyshane 9ed7d7e162 Merged fix for MDL-6681 2006-09-28 08:29:17 +00:00
skodak 90eca94be8 fixed incorrectly quoted $LIKE in forum recent activity sql 2006-09-27 10:44:25 +00:00
vyshane 83da3d286c Fix for MDL-3975. Also added function in rsslib.php to delete cached RSS feeds for the source and destination forums when moving a discussion between 2 forums. 2006-09-26 08:37:56 +00:00
martinlanghoff a8f4522dfa data, forum, glossary: use sql_ilike() for a portable LIKE operator 2006-09-26 05:08:18 +00:00
vyshane ee8e000823 Fixed bug in forum_make_mail_post() 2006-09-26 02:02:27 +00:00
vyshane dcd8e5890e Abstracted query in a new function forum_discussions_user_has_posted_in() 2006-09-25 08:50:00 +00:00
vyshane cac40c2716 Added $forums[$i]->type == 'qanda' check to make things more explicit 2006-09-25 08:41:31 +00:00
vyshane d50704bf19 Fix for MDL-6212. Forum searches now respect the qanda forums. In these forums, the user should not be able to see posts from discussions where the user has not yet posted, unless a post is the first post in the discussion (the question), or unless the user has the capabilitiy mod/forum:viewqandawithoutposting. 2006-09-25 08:25:58 +00:00
vyshane 66035aafd9 Merged fix for MDL-6521 2006-09-25 05:00:36 +00:00
vyshane 10b6398401 Fixed - wrong constant name 2006-09-25 04:11:41 +00:00
vyshane 2a692058d0 Fix in forum_make_mail_post() 2006-09-25 02:34:52 +00:00
vyshane 0ee186d9ca Typo in capability name. 2006-09-25 01:35:49 +00:00
vyshane 583b57b42d Changed <module>_print_recent_activity() functions so that they don't use $isteacher. However, I've left the $isteacher parameter in the functions, for backward compatibility so as not to break thrid party modules. Should we remove the parameter now? 2006-09-24 14:01:50 +00:00
moodler aad2ba95d1 Upgrading table to rename the context->aggregatelevel field which was
really bugging me.   Code should be a little bit more readable now.

Apologies to those with non-core code already using this field.
2006-09-22 06:19:32 +00:00
vyshane 9222e72167 Removed capability mod/forum:viewforum. We will use moodle/course:viewhiddenactivities and hide/unhide forums instead. 2006-09-21 08:32:05 +00:00
vyshane 2b15a08dc9 Added some notes for future reference 2006-09-21 07:40:24 +00:00
vyshane 2a1b4af377 Added course module groupmodes in convertion to roles logic 2006-09-20 16:54:50 +00:00
vyshane 6adc1e975d Added more overrides during restore process for forums from 1.6. Plus some bug fixes. 2006-09-20 02:59:43 +00:00
moodler b977b0a365 Fixed some subscription typos 2006-09-15 06:15:01 +00:00
vyshane 67875aa108 Fixed bug in forum_search_posts(). More testing needed still. 2006-09-15 06:04:23 +00:00
vyshane b1342e1869 Minor formatting tidyup 2006-09-14 08:57:41 +00:00
vyshane 42fb3c858f Converted forum searches so that they take into account the new Roles system. Search results will only include what the searcher should be able to see based on his/her capabilities. 2006-09-14 08:44:45 +00:00
moodler d6cc763f73 Added forum_role_assign and forum_role_unassign 2006-09-13 08:11:34 +00:00
moodler 8d630fda5a Expanded forum_add_user_default_subscriptions() for more contexts
Added    forum_remove_user_subscriptions()
2006-09-13 06:40:30 +00:00
stronk7 8289a52ff0 Now forum searches are working both under MSSQL and Oracle
(in a case-sensitive behaviour for Oracle, see code comments and
http://docs.moodle.org/en/XMLDB_Problems#Case-insensitive_searches)
2006-09-06 15:29:26 +00:00
stronk7 9eabd190c1 Now forum_get_discussions() is using $limitfrom and $limitnum 2006-09-05 22:37:56 +00:00
stronk7 b66458257d Adding support for MSSQL and Oracle in this select. Not really sure why we need one OUTER
join there, if every discussion has one usermodified but.....not time now.
2006-09-05 22:31:13 +00:00
stronk7 dcb8916f2d notice() should be allowed at install/upgrade. It stops the whole
process without need to do it. Changed to notify().

Thanks to one "orphan" forum in moodle.org (234) we detected this.
2006-09-03 22:32:14 +00:00
moodler e084b2f98b Replaced forum_get_user() with forum_add_user_default_subscriptions() 2006-09-03 08:01:48 +00:00