513 Commits

Author SHA1 Message Date
Sam Hemelryk
66a0612ae0 datalib MDL-14679 Fixed regression in get_logs_userday function, missing argument 2010-03-18 05:48:21 +00:00
Petr Skoda
9a9012dc8f MDL-21590 fixed icons in navigation lib + clean up of modinfo (planned removeal of legacy use of urlencode since 1.8 - we use serialize and utf8 is ok now) 2010-02-14 20:18:10 +00:00
Andrew Davis
850262ee94 datalib MDL-18470 Implemented more readable version of get_admin() 2009-11-20 02:28:39 +00:00
Petr Skoda
117bd74897 MDL-20700 coding style cleanup - cvs keywords removed, closign php tag removed, trailing whitespace cleanup 2009-11-01 11:31:16 +00:00
Petr Skoda
3f77c1584c MDL-20697 removing duplicate error string, fixing get_site() which is now using exceptions 2009-11-01 09:10:09 +00:00
Eloy Lafuente
a380f30158 MDL-20288 add_to_log() - No need for any check in 2.0 as far as
insert_record_raw() already hadles that for Oracle on binding.
Merged from 19_STABLE
2009-10-30 17:07:21 +00:00
ericmerrill
4a09658ea8 My Moodle/Courses: MDL-20472 get_my_courses returns 2 more courses then limit. Repairs two off by one errors in get_my_courses and get_user_courses_bycap. 2009-10-08 04:52:33 +00:00
skodak
0a127169fe MDL17980 reverting last commit - other devs agreed, to be explained in tracker 2009-08-03 07:35:41 +00:00
peterbulmer
1b509b3699 MDL17980 mnet improvements
* Allow multiple roles to be allocated by identity provider
* Allow existing enrolment plugins to manage mnet enrolments


Author: Peter Bulmer <peter.bulmer@catalyst.net.nz>
2009-08-03 03:38:23 +00:00
skodak
4fea29e40e MDL-19689 get_coursemodule_from_id() and get_coursemodule_from_instance() now have $strictness parameter too 2009-07-04 11:15:16 +00:00
skodak
a8d6ef8c6c MDL-18293 $DB->somethiong is using exceptions, no need for ifs there, removing useless strings 2009-06-03 20:16:20 +00:00
samhemelryk
3564771d6b lib MDL-19236 added phpdocs and copyrights 2009-05-22 08:41:00 +00:00
skodak
73efeff61b MDL-19119 moving get_fast_modinfo() to moodlelib.php - the recent changes related to inclusion of course/lib.php were causing regressions 2009-05-17 18:45:00 +00:00
tjhunt
7a9d505bb9 category paths: MDL-18897 call fix_course_sortorder eveywhere we insert a category to set category.path and .depth 2009-04-20 05:59:11 +00:00
skodak
68fbad4417 MDL-18293 exception and DML cleanup 2009-02-17 17:15:47 +00:00
skodak
4d55255bf9 MDL-17855 fixed typo 2009-01-11 17:16:50 +00:00
skodak
b7b64ff2e0 MDL-17754 next round of session related refactoring 2009-01-02 20:32:05 +00:00
skodak
542797b4e8 MDL-17767 loginas internals refactoring - code moved to sessionlib.php 2009-01-02 14:53:02 +00:00
sam_marshall
82bd6a5ea9 MDL-15499: Conditional availability of activities 2008-12-17 16:37:35 +00:00
dongsheng
94b8568628 "MDL-16954, get rid of remote_addr notice on cli, set ip = 0.0.0.0 in mdl_log table when accessed from cli, merged from 1.9" 2008-12-11 05:18:17 +00:00
tjhunt
8ed5dd63ee course categories: Fix many bugs with category editing and permissions. Clean up code.
Bugs: MDL-17479, MDL-16426, MDL-16063, MDL-16013, MDL-15658, MDL-15556, MDL-15161, MDL-14925, MDL-13742, MDL-11557.

* Simplify category editing permissions to just moodle/category:manage and moodle/category:seehiddencategories.
* Enforce those correctly. (Note MDL 17502 is still outstanding.)
* Don't screw up category sort order when you just edit name or description.
* Niceties like where redirects go when you cancel or submit forms.
* Make sure a global course creator can see the site admin block.
* Don't allow a category to be made the child of one of its children!
* General code cleanup to bring key files more in line with best pracitice.

Apologies for the fact it is one big patch, rather than a series of smaller patches. However, categoryedit.php, category.php and index.php where in pretty bad shape and needed significant cleaning up. categoryedit.php, in particular, was almost completely rewritten.

Merged from MOODLE_19_STABLE.
2008-12-04 08:53:10 +00:00
tjhunt
df73f8d4e1 restore: MDL-17480 Potentially expensive function user_can_create_courses called repeatedly from restore UI. 2008-12-01 06:55:11 +00:00
skodak
78a0635ccd MDL-17408 DML: new sql_modulo() method used in course sorting 2008-11-26 08:51:08 +00:00
tjhunt
9101efd312 cleanup: MDL-17083 Remove the old teacher, teachers, student and students columns from the course table.
For something that has been deprecated for over two years, they were still used in a lot of places!
2008-11-13 08:40:57 +00:00
peterbulmer
f76a259e10 MDL-14488 - start sql query with unique field - credit David Monllaó 2008-09-07 06:00:22 +00:00
skodak
8aff848213 MDL-14589 minor database driver loading refactoring 2008-09-02 20:32:03 +00:00
skodak
a1b892ccec MDL-16226 get_coursemodule_xx() improvements 2008-08-27 11:31:37 +00:00
jmg324
8b09e84569 MDL-7971 check in get_categories if user can see hidden categories uses specific capability not course:create 2008-07-16 15:12:09 +00:00
skodak
54a606e91c MDL-15469 adding fclose before write to already open file; merged from MOODLE_19_STABLE 2008-07-09 10:35:25 +00:00
dongsheng
ffc5dbdec1 "MDL-15469, limit email notification" 2008-07-02 04:54:37 +00:00
skodak
6566118c51 MDL-15320 support for other database driver types 2008-06-20 07:05:46 +00:00
skodak
0cbe81112a MDL-14580 rewritten course sorting algorithms 2008-06-16 14:25:53 +00:00
skodak
3dce78e125 MDL-15247 lib/dmllib.php is now obsolete 2008-06-15 11:35:25 +00:00
skodak
245ac55791 MDL-14679 last forgotten bits of dml conversion 2008-06-09 19:48:24 +00:00
skodak
294ce9870f MDL-15189 magic quotes finally removed 2008-06-09 16:53:30 +00:00
skodak
655b09ca8a MDL-15117 wiki converted and other regressions fixed 2008-06-04 21:34:14 +00:00
skodak
f93ea22284 MDL-15142 Bug in datalib.php instance_is_visible() thanks Jerome 2008-06-04 07:54:58 +00:00
nicolasconnault
8a44548456 MDL-14967 Bug in DB upgrade for get_coursemodule_from_instance: named params were using :$modulename instead of :modulename 2008-06-02 14:18:18 +00:00
skodak
e098550433 MDL-15084 get_coursemodules_in_course regression 2008-06-02 10:41:59 +00:00
skodak
fd0e6640cc MDL-14679 fixed some more $db's 2008-05-31 22:18:41 +00:00
skodak
b820eb8c60 MDL-15073 delete_records now truncates table if deleting all records, fixed some regressions 2008-05-31 15:32:28 +00:00
skodak
606d760312 MDL-14679 fixed datalib prefix use 2008-05-30 17:06:41 +00:00
skodak
ac1ba33e4a MDL-14679 fixed datalib addslashes 2008-05-30 17:00:25 +00:00
skodak
d251907c51 MDL-14679 fixed datalib whitespace 2008-05-30 16:51:01 +00:00
skodak
c3df090199 MDL-14679 datalib conversion completed 2008-05-30 16:47:21 +00:00
skodak
06c1a1daf4 MDL-14981 regex search support in datalib, fixed course search 2008-05-25 20:43:46 +00:00
skodak
3b8a284cca MDL-14679 more datalib conversions 2008-05-25 15:16:17 +00:00
skodak
624a690b3d MDL-14679 first part of datalib conversion 2008-05-25 09:39:02 +00:00
skodak
f33e1ed4ae MDL-14679 ok, here is the big patch with new dmllib and ddlib API, some code is already converted, XML db editor works; see tracker for details of regressions and TODOs 2008-05-15 21:40:00 +00:00
dongsheng
12d0687748 "MDL-14460, fix get_context_instance, merged from MOODLE_19_STABLE" 2008-05-01 06:07:24 +00:00