1785 Commits

Author SHA1 Message Date
Petr Skoda
b1d5d0155b MDL-26271 fix borked sql parameters in forum_search_posts and add missing modinfo field
This is the perfect example why there must not be duplicate parameter names in SQL queries.
2011-02-12 10:11:27 +01:00
Eloy Lafuente (stronk7)
cd03ecce8e Merge branch 'MDL-24870_rss_error' of git://github.com/andyjdavis/moodle 2011-02-08 10:21:55 +01:00
Eloy Lafuente (stronk7)
195a0848ec MDL-26272 ratings - fix uses breaking after last modinfo changes 2011-02-04 17:30:51 +01:00
andyjdavis
3ad3f24808 rss MDL-24870 fixed the capability checks to access module rss feeds 2011-02-04 10:27:52 +08:00
Petr Skoda
46df3c6059 Merge branch 'MDL-25981' 2011-01-31 22:44:17 +01:00
sam marshall
0d8b6a69ce lib MDL-25981 Improved modinfo
This commit:
a) moves modinfo code into new library modinfolib.php
b) uses classes instead of stdClass objects, allowing a huge amount of documentation (and IDE completion)
c) adds hooks so that plugins other than forum can display messages like forum's 'unread', and plugins other than label can display html (apart from/as well as their view.php link) on the course view page
d) removes current hacks for forum and label (mainly in print_section but also across the code), replacing with new 'content' and similar variables [this is the reason for the changes in blocks, etc]
e) reduces size of modinfo in database (only when rebuilt) by excluding empty fields

The change is intended to be backward compatible and does not affect the format of modinfo in database.
2011-01-26 10:29:16 +00:00
Petr Skoda
99d19c13ae MDL-25855 some more missing filelib includes 2011-01-23 18:34:41 +01:00
Eloy Lafuente (stronk7)
56d1c48f24 MDL-25708 recordsets - forum module 2011-01-25 19:59:01 +01:00
Eloy Lafuente (stronk7)
a9af868943 Merge branch 'MDL-24561_forum_subscribe_sesskey' of git://github.com/mudrd8mz/moodle 2011-01-10 21:38:13 +01:00
Petr Skoda
2f1b1abc83 Merge branch 'MDL-25232' of git://git.luns.net.uk/moodle 2011-01-10 14:35:38 +01:00
Dan Poltawski
ed4a7e4b07 forum MDL-25232 - fix unbalanced divs 2011-01-09 21:11:01 +00:00
Dan Poltawski
065bee4b70 forum MDL-25909 - Fix undefined variable 2011-01-08 15:19:41 +00:00
David Mudrak
c56ed7bb85 MDL-24561 forum: require sesskey for the course-wide subscriptions
mod/forum/index.php allows to subscribe to and unsubscribe from all
forums in the course. However, sesskey was not checked here.
2011-01-05 13:01:46 +01:00
David Mudrak
6f7d65c724 MDL-24561 forum subscription checks sesskey
The only case when sesskey is not available is when we came to
subscribe.php from a link in email. In that case, we display a
confirmation page that redirects back providing the sesskey.
All other links to subscribe.php are fixed now so they provide sesskey
as a parameter.
I also polished $mode parameter handling a bit because the check
against empty string was not correct as the value is cast to PARAM_INT.
2011-01-05 13:01:46 +01:00
Petr Skoda
1310964bb3 Merge branch 'MDL-24860_messaging_providers' of git://github.com/andyjdavis/moodle
Conflicts:
	mod/lesson/version.php
2010-12-27 13:39:20 +01:00
andyjdavis
d8f1412819 message MDL-24860 fixed messaging code in mod_lesson and marked spots that are directly sending email 2010-12-22 12:05:49 +08:00
Petr Skoda
c35ae13691 MDL-25674 forum must send full user record when setting up different session user in cron 2010-12-20 14:41:17 +01:00
David Mudrak
7e514cd768 MDL-25619 portfolio: exported HTML output can not be cleaned 2010-12-08 23:20:04 +00:00
David Mudrak
d1571da6c8 MDL-25068 forum: fixed error string usage
The string [cannotsubscribe,mod_forum] is supposed to be used for group
membership check only. I have fixed the two other usages of the string.
Note that the condition if (forum_subscribe()) was useless as the
function return true values only now after $DB conversion.
2010-12-07 12:34:35 +00:00
David Mudrak
9a3adb2032 NOMDL forum: fixed the string wording to match the current code condition
Previous string was used together with the legacy:guest capability.
However, the current code checks is_enrolled() instead. This led to a
weird situation when non-enrolled admin or manager could not subscribe
to a forum and the error message was completely confusing for them.
2010-12-07 12:34:11 +00:00
David Mudrak
99eb51d9e4 MDL-22114 forum: fixed PAGE url param set
I am pretty sure Sam overlooked this is in the commit afef965e
2010-12-07 12:33:24 +00:00
Helen Foster
7a35fe4ffd MDL-21250 capital letters removal 2010-12-02 15:42:24 +00:00
Sam Hemelryk
c89fa3fe4c mod-forum MDL-25386 Fixed up the navigation for the forum. 2010-11-29 06:27:22 +00:00
Andrew Davis
da8ae44ead rss MDL-25319 adding a check to avoid some work if the same rss feed is requested repeatedly 2010-11-19 06:33:38 +00:00
Sam Hemelryk
653bc47ff2 mod-forum MDL-25299 Fixed up whitespace issue in forum lib 2010-11-19 01:57:23 +00:00
David Mudrak
29ec4d26ff Fixed the anchor of Show parent link in the Forum
The anchor link led to the post itself instead of to the parent.
2010-11-18 12:47:24 +00:00
Petr Skoda
516c5eca68 MDL-24698 hopefully fixed all completion_info problems 2010-11-17 06:23:56 +00:00
Sam Hemelryk
1d67258eb9 mod-forum-search MDL-25239 Fixed double encoding of the search param during pagination 2010-11-16 09:00:47 +00:00
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
f3cc571af2 MDL-25225 forum: fixed discussion control layout
The display mode selector is supposed to display in the middle of the
row. Move discussion selector should be on the right, portfolio export
selector on the left. Thanks Sam Marshall for the report and testing the
patches.
2010-11-15 14:18:24 +00:00
Sam Marshall
15e48a1a49 Forum MDL-25170 Discussion move feature should have button so you don't do it by accident (again) 2010-11-15 10:41:26 +00:00
David Mudrak
afe38b79c6 MDL-21657 fixed regression in function call after its API change
The API of the function forum_print_posts_threaded() was changed in
63e87951e6ce93aadc2b891556bf832fe4b5226c but this call was not updated.
This led to not displaying other replies when replying to a forum post.
2010-11-15 10:02:44 +00:00
Eloy Lafuente
0f66acede0 MDL-22135 - logs restore, course and activities + cleanup 2010-11-11 19:46:04 +00:00
Tim Hunt
d2af10140a forum files MDL-25167 files in the post file area were not moved when the post was moved or deleted.
Also, I refactord some code out of forum_move_post and into a new method file_storage::move_area_files_to_new_context. I hope that is OK.
2010-11-11 18:58: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
f357d2f8eb Fixed portfolio UI integration in forum thread
There was not enough space to put yet another discussion thread control
widget.
2010-11-11 18:04:43 +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
Sam Marshall
2380ac57d6 Unit tests MDL-24993 Disable obsolete portfolio tests until such time as somebody can fix them 2010-11-10 12:06:24 +00:00
Petr Skoda
72ea011706 MDL-24955 improved add discussion logic for users that are not enrolled yet 2010-11-10 02:49:00 +00:00
Petr Skoda
8e18e1ecdc MDL-24955 improved reply link logic for users that are not enrolled yet 2010-11-10 02:43:56 +00:00
Petr Skoda
45ff8a80d3 MDL-24955 improved detection of available self enrol plugins 2010-11-10 02:14:27 +00:00
Sam Marshall
702a206cd3 Unit tests MDL-24993 Disable obsolete portfolio tests until such time as somebody can fix them 2010-11-09 17:09:13 +00:00
Sam Hemelryk
01d0aceb64 mod-forum MDL-25113 Fixed up navigation for forum when browsing a discussion. 2010-11-09 08:59:53 +00:00
Andrew Davis
99fa98899b forum MDL-24850 added ratings to mod/forum/user.php 2010-11-09 08:34:30 +00:00
Sam Hemelryk
8cda6c2a3a mod-forum MDL-25113 Fixed up navbar display for forum threads 2010-11-09 03:43:40 +00:00
Petr Skoda
54ab8769cd MDL-24955 prevent infinite redirect loop when not enrolled and self enrol not available 2010-11-09 01:53:28 +00:00
Andrew Davis
46505ee75e message MDL-24694 removed references to user->emailstop. the column itself will be removed in a later version 2010-11-05 08:04:40 +00:00
Sam Hemelryk
c48a07c64e mod-forum MDL-24895 Fixed up CSS classes in forum posts 2010-11-05 07:53:08 +00:00
Andrew Davis
cc7719396e rss MDL-25076 made forum rss feeds that are displaying discussions instead of posts correctly set the item titles 2010-11-05 06:13:31 +00:00
Sam Hemelryk
367a75fae4 themes lib MDL-24895 Multiple fixes to better handle overflow.
Major tasks undertaken in this patch:
* New format_text argument, overflowdiv.
* New page layout Report.
* Review of all format_text calls.
* Added support for the report layout to all themes.
* Changed forum post display from tables to divs.
2010-11-05 02:53:47 +00:00