Commit graph

625 commits

Author SHA1 Message Date
Petr Škoda
3ed5751685 MDL-35904 improve caching in get_admin() and fix order of records from get_admins() 2012-10-13 09:52:39 +02:00
Tim Hunt
c2004a7952 MDL-34657 user sort: exact match logic should be case-insensitive. 2012-10-04 11:43:33 +01:00
Tim Hunt
9f82ddd66f MDL-34657 datalib: function to generate user sort sql.
The purpose of this method is to ensure that when we display lists of
users in different places, the default sort order is consistent.

Having this code centralised in one place them makes it possible to
improve things accross the board, and there is an example of that here.
There is logic so that if we are searching for particular string, then
users with an exact match are sorted first.
2012-09-27 12:41:41 +01:00
Dan Poltawski
4501a081d3 MDL-35257 lib: if $CFG->logguests is disabled, avoid some log actions
This is for performance, else there can be great contention on the guest
user record as we've seen on moodle.org.
2012-09-07 10:25:22 +08:00
Adrian Greeve
b0c6dc1cac MDL-34465 - lib - Replacing get_context_instance with context_XXXX::instance (group 8) 2012-07-27 10:10:46 +08:00
Petr Skoda
c52551dc3c MDL-8249 localise standard role names and descriptions if empty 2012-07-06 08:22:34 +02:00
Sam Hemelryk
6bf6e113bb Merge branch 'MDL-31877-master-1' of git://git.luns.net.uk/moodle 2012-03-12 14:57:11 +13:00
Andrew Robert Nicols
cdca666bbb MDL-31877 Correct get_users exception 2012-03-05 13:48:55 +00:00
Petr Skoda
f8311defeb MDL-31301 use static textlib methods 2012-03-03 11:46:13 +01:00
Eloy Lafuente (stronk7)
1991f37f55 Merge branch 'm_MDL-31552_change_add_to_log_exception_to_add_exception_information' of git://github.com/gerrywastaken/moodle 2012-02-15 03:19:44 +01:00
Gerard (Gerry) Caulfield
709dfc0687 MDL-31552 Change add_to_log() so that it's exception handling throws a useful message when there is a problem. 2012-02-15 00:11:24 +08:00
Ankit Kumar Agarwal
04252d3a13 MDL-30975 Docs Adding correct pacakge information 2012-02-13 11:06:47 +05:30
Ankit Kumar Agarwal
fcf64900e6 MDL-30975 Docs Documenting Logs API 2012-02-13 11:06:42 +05:30
Petr Skoda
b85b25ebb8 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-18 01:03:20 +01:00
David Mudrak
68e550e6b2 MDL-30966 print_object() output made CLI-friendly 2012-01-06 22:48:12 +01:00
Petr Skoda
4ad72c284d MDL-30548 support user suspended flag in admin UI
This patch includes:
* user management suspend UI tweaks and other coding style improvements
* suspended info in user profiles
* suspend option in advanced edit form
* suspended user filtering
* hidden user fields option for suspended field

Thanks Sam Hemelryk for valuable feedback.
2012-01-03 16:35:21 +01:00
Petr Skoda
b8d13becf9 MDL-30625 fail gracefully when admins not defined 2011-12-09 09:04:43 +01:00
Petr Skoda
bb6ccfa53d MDL-30625 full support for main admin 2011-12-07 11:18:10 +01:00
Rajesh Taneja
187672608e MDL-28947 lib: print_object cleans html special chars before printing 2011-11-22 09:28:54 +08:00
Petr Skoda
69ac5d478f MDL-30147 do not rely on dml exception type outside of dml layer
The trouble is that dml driver methods (insert, update, select) are not guaranteed to return the same exception class for various db problems and coding style issues. The recommended practice is to catch dml_exception only.
2011-11-19 09:25:11 +01:00
sam marshall
1fdc0c6aaa MDL-26647 (3) Support showuseridentity on Browse Users page 2011-11-04 13:57:11 +00:00
Eloy Lafuente (stronk7)
86e00f970b MDL-29912 course search - oracle inabilities with concats, empties, nulls and type-restrictions 2011-10-26 19:04:31 +02:00
Eloy Lafuente (stronk7)
3cb206f575 MDL-29496 course search - emergency regression fix 2011-10-20 00:49:02 +02:00
Eloy Lafuente (stronk7)
c2551ed593 Merge branch 'w41_MDL-29602_m22_accesslib' of git://github.com/skodak/moodle 2011-10-18 13:15:13 +02:00
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
Jason Fowler
b438bce949 MDL-29496 Search, Course - Code applied from patch to allow courses with a blank summary to be found in searchs - Thanks to Andrew Nicols for the patch 2011-10-10 11:35:42 +08:00
Petr Skoda
618a7f91ec MDL-27597 fix invalid results of get_categories when shallow is false 2011-08-05 20:13:12 +02:00
Petr Skoda
43b9db45da MDL-28384 convert empty log urls to ''
The problem is that the log table does not allow nulls, credit goes to Troy Williams.
2011-07-24 14:07:30 +02:00
Petr Skoda
51c3e855d0 MDL-27696 do not use placeholders in GROUP BY because pg does no like that 2011-07-19 10:53:20 +02:00
Petr Skoda
a1d27703fe Merge branch 'wip-MDL-27696-master' of git://github.com/samhemelryk/moodle 2011-07-18 15:17:05 +02:00
Sam Hemelryk
c103eba85f MDL-27696 datalib Fixed up misused params in get_logs_usercourse 2011-07-13 10:30:35 +08:00
Rossiani Wijaya
c65f0b6fb5 MDL-27755 course search: Add course id and shortname to search fields 2011-07-07 15:02:11 +08:00
Petr Skoda
cf717dc26b MDL-27148 use new get_in_or_equal() param prefix instead of start 2011-04-14 15:15:01 +02:00
Eloy Lafuente (stronk7)
afa559e9bc MDL-25708 recordsets - fix accesslib and datalib uses 2011-01-25 19:58:59 +01:00
Dongsheng Cai
3acbe663af MDL-25669, fix_course_sortorder should check MAX_COURSE_CATEGORIES limit, and print debugging message when the number of courses in a category reach the limit 2011-01-10 09:57:15 +08: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
Eloy Lafuente (stronk7)
b739d51be6 MDL-25674 fix phpdocs 2010-12-21 19:19:35 +01:00
Petr Skoda
5d6ab05435 MDL-25674 prevent modification of cached admin record 2010-12-20 14:41:17 +01:00
Petr Skoda
8082d3abf7 MDL-25187 upgrade log debugging to use new DML style
all credit goes to Eloy Lafuente (stronk7)
2010-11-15 07:38:02 +00:00
Petr Skoda
f11f7b41df MDL-25152 guest logging can be disabled now 2010-11-11 06:11:13 +00:00
Petr Skoda
365a594107 MDL-24321 switching to stdClass in /lib/ 2010-09-21 08:07:44 +00:00
Petr Skoda
83be47e611 improved phpdocs 2010-09-18 13:59:39 +00:00
Petr Skoda
4758639429 MDL-24080 converting remaining NOT LIKEs 2010-09-04 14:52:47 +00:00
Petr Skoda
b0238f06e3 MDL-24079 converted datalib to use new sql_like() 2010-09-04 12:45:47 +00:00
Petr Skoda
f63ac65ac5 MDL-24079 converted sql_ilike() to new sql_like in user selectors 2010-09-04 11:46:00 +00:00
Petr Skoda
a9637e7df4 MDL-14679 fixed a lot more old style uses of insert_record() 2010-09-03 17:47:41 +00:00
Petr Skoda
b3df176457 MDL-23927 do not use = 'guest' because we have CFG->siteguest AND it matches any other username with accents and different case in MySQL 2010-08-25 08:56:07 +00:00
Petr Skoda
78bfb562a0 MDL-21249 improved php docs and adding direct access prevention in core libs 2010-07-25 13:35:05 +00:00
David Mudrak
c6575befff MDL-22910 Fixed regression - problem with DISTINCT + text field in MSSQL/Oracle 2010-07-20 09:02:23 +00:00