406 Commits

Author SHA1 Message Date
Petr Skoda
e922fe23b6 MDL-29602 accesslib improvements
Refactoring and improvements of the accesslib.php library including prevention of access for not-logged-in users when forcelogin enabled, improved context caching, OOP refactoring of contexts, fixed context loading, deduplication of role definitions in user sessions, installation improvements, decoupling of enrolment checking from capability loading, added detection of deleted and non-existent users in has_capability(), new function accesslib test, auth and enrol upgrade notes.

More details are available in tracker subtasks.
2011-10-16 14:05:18 +02:00
Eloy Lafuente (stronk7)
5169a039c7 MDL-29478 unittest - explicity include blog/lib.php. Was causing "random" errors 2011-09-23 01:36:41 +02:00
Eloy Lafuente (stronk7)
635c65bbd5 MDL-29478 blog - fixed some recent regressions introduced by MDL-29186 2011-09-23 00:03:56 +02:00
Aparup Banerjee
d1e362405e Merge branch MDL-29186-master of git://github.com/samhemelryk/moodle
- resolved conflicts, minor whitespace and fixed quote.
- note: textlib_get_instance() is already deprecated
2011-09-13 16:06:21 +08:00
Aparup Banerjee
5433da6064 Merge branch MDL-29189-master of git://github.com/samhemelryk/moodle
- resolved conflicts.
2011-09-13 11:39:06 +08:00
Tom Lanyon
5a87c912a2 MDL-28701 Change uses of make_upload_directory(cache) to make_cache_directory(). 2011-09-10 10:44:43 +02:00
Tom Lanyon
365bec4c06 MDL-28701 Change all uses of $CFG->dataroot/cache to $CFG->cachedir 2011-09-10 10:35:46 +02:00
Sam Hemelryk
91d284c145 MDL-29186 multilang Reviewed the uses of course fullname and ensured things were being formatted consistently 2011-09-08 09:38:46 +12: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
Andrew Davis (andyjdavis)
b38e2e28a1 MDL-27829 blocks: altered the algorithm used to find plugin page types 2011-06-27 12:27:41 +08:00
Dongsheng Cai
b1627a92e5 MDL-26105 Block settings should contains less options, and be more user friendly
AMOS BEGIN
    MOV [page-blog-index, pagetype], [page-blog-index, blog]
    MOV [page-blog-x, pagetype], [page-blog-x, blog]
    MOV [page-tag-x, pagetype], [page-tag-x, tag]
    MOV [page-course-view-weeks, pagetype], [page-course-view-weeks, format_weeks]
    MOV [page-course-view-weeks-x, pagetype], [page-course-view-weeks-x, format_weeks]
    MOV [page-course-view-topics, pagetype], [page-course-view-topics, format_topics]
    MOV [page-course-view-topics-x, pagetype], [page-course-view-topics-x, format_topics]
AMOS END
2011-06-09 13:51:14 +08:00
Eloy Lafuente (stronk7)
d1380a3c9a Merge branch 'MDL-27372' of git://github.com/nebgor/moodle 2011-05-09 01:54:46 +02:00
Aparup Banerjee
fce7424beb MDL-27372 moved blog comments to end of body of blog entry. we now see the entire blog entry without comments in the way. 2011-05-05 15:27:38 +08:00
Sam Hemelryk
d045b479f4 Merge branch 's9_MDL-26854_spam_comments_master_2' of git://github.com/dongsheng/moodle 2011-05-05 10:41:53 +08:00
Dongsheng Cai
c1951ea953 MDL-26854 COMMENT
1. added pluginname_comment_validate callback to comments api
2. change permission callback defaults to false
3. Tidied up serveal areas of comments and implemented callback to
ignore system permissions for view (credits to Sam Hemelryk)

AMOS BEGIN
    MOV [modulerejectcomment,error],[callbackrejectcomment,error]
AMOS END
2011-05-04 17:23:46 +08:00
Aparup Banerjee
20b503841b MDL-25840 blog - fixed broken image file image attachment display 2011-04-27 11:39:01 +08:00
Petr Skoda
9015609696 Revert "MDL-25840 fixed image files link not rendered correctly when attached as file (instead of inline)."
The reason is failed testing. This reverts commit c9b0e31ff29adef113a4adc746bc9169cdddd259.
2011-04-13 15:06:39 +02:00
Petr Skoda
de57ec3926 Merge branch 'MDL-25840' of git://github.com/nebgor/moodle 2011-04-11 13:31:45 +02:00
Aparup Banerjee
c9b0e31ff2 MDL-25840 fixed image files link not rendered correctly when attached as file (instead of inline). 2011-04-11 14:14:03 +08:00
Ankit Agarwal
899d5e2d50 MDL-26931 Order blog entries by the creation date 2011-03-31 11:50:57 +02:00
Petr Skoda
8f6c1f3488 MDL-26859 improve blog access control and prevent unnecessary blog includes 2011-03-20 13:34:51 +01:00
Petr Skoda
5b183f51a8 MDL-26859 do not show "my blog" link to guests and not-logged-in users 2011-03-20 12:34:41 +01:00
Petr Skoda
431ac39634 MDL-26623 fix file permissions
The permissions are now going to be verified as part of the weekly release process.
2011-03-01 12:26:49 +01:00
David Mudrak
ed79b89b85 MDL-26010 Reformatting SQL of the previous Andrew's fix
I have reformatted the SQL according to the style used in Moodle code to
improve readability of the query. Added sql_compare_text() to the right
side of the comparison, even though the current callers provide integers
here (just in case).
2011-02-18 17:33:37 +01:00
Andrew Davis
42291c6161 MDL-26010 External blog synchronization removes non-relevant post records 2011-02-18 17:19:41 +01:00
Eloy Lafuente (stronk7)
a537e50725 MDL-24898 external blogs - strip html and truncate subject 2011-02-13 23:03:55 +01:00
Charles Fulton
9250bf8172 MDL-26238 remove deprecated second parameter from groups_get_group() calls 2011-02-06 18:15:36 +01:00
Sam Hemelryk
78f0f64d47 blog MDL-25981 PULL-162 Removed typehinting in blog after changed from stdClass to cm_info 2011-02-02 10:37:33 +08:00
Petr Skoda
99d19c13ae MDL-25855 some more missing filelib includes 2011-01-23 18:34:41 +01:00
Dan Poltawski
9268148966 blog MDL-23393 - Tidy up preferences form
Make form display set value and use mforms type checking
2011-01-09 18:03:58 +00:00
Eloy Lafuente (stronk7)
e5137f247e MDL-25341 blogs import - unused vars and mktime() fix 2010-12-27 16:20:39 +01:00
Eloy Lafuente (stronk7)
b7c1da93ec MDL-25341 blogs import - minor whitespace clean 2010-12-27 15:56:58 +01:00
andyjdavis
2948757873 blog MDL-25341 fixed 2 more whitespace issues 2010-12-24 09:31:58 +08:00
andyjdavis
694fb770b9 blog MDL-25341 removed another whitespace 2010-12-22 13:29:01 +08:00
andyjdavis
c484c852f4 blog MDL-25341 removed some whitespaces inserted by netbeans 2010-12-22 13:27:46 +08:00
andyjdavis
bb8a75e72d blog MDL-25341 fixed some whitespace issues 2010-12-22 13:24:55 +08:00
andyjdavis
50ff50daaa blog MDL-25341 added removal of deleted external blog posts 2010-12-20 14:58:02 +08:00
andyjdavis
cc52e53dd1 blog MDL-20617 adding checking for deleted blog posts 2010-12-20 11:16:11 +08:00
andyjdavis
afce96f07b blog MDL-25341 updated external blog syncing code after peer review 2010-12-17 09:46:46 +08:00
andyjdavis
9829e3d8fa blog MDL-25341 made external blog syncronization not delete all previously retreieved blog posts 2010-12-16 16:21:41 +08:00
David Mudrak
cfa11fd610 Fixed a string usage - no placeholder is expected here 2010-11-26 09:42:02 +00:00
Eloy Lafuente
8be6dfcc4a MDL-25340 external blof - fix problem with extra tags processing 2010-11-19 23:58:53 +00:00
Eloy Lafuente
a742eb1f8b MDL-25340 external blog - fix sql_compare_text() use 2010-11-19 21:57:15 +00:00
Andrew Davis
f8df6aebcf blog MDL-25318 fixed an sql error in blog_delete_external_entries() 2010-11-19 07:38:29 +00:00
Andrew Davis
99cd408f81 blog MDL-25217 now checking for null creation and modified timestamps when importing external blog entries 2010-11-15 03:56:12 +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
Sam Marshall
e67c213cc3 Unit tests MDL-24907 Fix blog unit tests 2010-11-02 14:18:11 +00:00
Sam Hemelryk
ca824b38ce blogs MDL-24875 Fixed typo... whoops 2010-10-27 05:59:31 +00:00
Sam Hemelryk
3b59524d31 blogs MDL-24875 Increased uniquehash field size to 255 and added a str length check to external blog syncing. 2010-10-27 05:25:00 +00:00
Andrew Davis
5ce534eb7c rss MDLSITE-1007 fixed a potential security problem with blog rss feeds 2010-10-04 08:12:28 +00:00