Commit graph

4649 commits

Author SHA1 Message Date
martinlanghoff
cf8133c457 lib/setup moodelib: Introducing moodle_request_shutdown()
Now Moodle will have a 'shutdown_function' function. Right now
registered (and useful) only when running under apache + mod_php.

This initial function checks whether memory usage in this process exceeded
10MiB or $CFG->apachemaxmem (int, in bytes). This is really useful to prevent
using more RAM than we have.
2007-04-05 05:04:06 +00:00
skodak
c57d88740f MDL-8802 fixed byteserving broken by adobe anti xss patch; merged from MOODLE_18_STABLE 2007-04-04 19:45:17 +00:00
jamiesensei
db8e700b0a fixes MDL-9195 mform->hardFreeze() doesn't remove id attribute of label for checkbox 2007-04-04 10:16:22 +00:00
skodak
f76cfc7a3a MDL-9191 fix for potential incorrect use of get_auth_plugin; merged from MOODLE_18_STABLE 2007-04-04 09:19:31 +00:00
toyomoyo
07076b70a4 fix for MDL-9095, increase blog tag length 2007-04-04 09:13:32 +00:00
nicolasconnault
20355e5ac2 MDL-9138; Edited lib/xmlize.php to return false when the passed file doesn't return any entries (when it's not valid XML or is empty). Also made it much clearer that glossary/import requires an XML file, not just any old file. 2007-04-04 03:35:23 +00:00
skodak
ad56b73774 MDL-9170 https redirect doesn't happen on login page - fixed problem when guest button disabled; merged from MOODLE_18_STABLE 2007-04-03 14:59:56 +00:00
nfreear
008b2b07ab Fixes bug MDL-9175 "Groups simpletest, fatal errors", also DONOTCOMMIT. 2007-04-03 10:16:51 +00:00
toyomoyo
49860445a6 fix for MDL-8739, restore in course category 2007-04-03 09:19:09 +00:00
tjhunt
5081e0a635 Better way to detect whether a function exists in this version of PHP before redefining it. 2007-04-03 08:34:39 +00:00
tjhunt
1aa7b31dd9 Make sure print_object output is always left-aligned. Also, make it look more like other debugging output. 2007-04-02 15:28:43 +00:00
skodak
e78d624f79 fixed warning when upload fails; merged from MOODLE_18_STABLE 2007-04-02 14:57:56 +00:00
skodak
2c040c29df MDL-9170 https redirect doesn't happen on login page; merged from MOODLE_18_STABLE 2007-04-02 13:59:36 +00:00
toyomoyo
47bb1aed07 merged fix for MDL-9160, get_my_courses caching issues 2007-04-02 03:53:10 +00:00
toyomoyo
72cf2e3908 admins should not need course:view 2007-04-02 02:37:34 +00:00
tjhunt
b388c7664d Another attempt to get redirect() to not redirect if an error was output to the screen, to make dubuggin easier. Sorry I had not noticed the bit in the docs that says error_get_last was PHP 5.2.0+. 2007-04-01 22:19:39 +00:00
moodler
b107549c32 Merged MDL-9139 from 1.8 2007-04-01 15:59:04 +00:00
moodler
bf8b3d21ba Making redirects work again 2007-03-31 02:34:06 +00:00
moodler
d176958817 error_get_last() ? What's that? 2007-03-31 02:30:56 +00:00
skodak
ef4d42fd9e Added patch from Mark for MDL-9083; merged from MOODLE_18_STABLE 2007-03-30 21:15:39 +00:00
nfreear
5bff085524 Follow up fix for bug MDL-8695 "Form 'required' icon is hidden". 2007-03-30 10:52:45 +00:00
tjhunt
9523cbfcef Small code cleanup to fix an obscure warning. If you got an error in the middle of creating a quiz attempt, you could get an attempt with no states. Then that caused an error when the attempt was deleted. Merged from MOODLE_17_STABLE. 2007-03-30 10:17:16 +00:00
nfreear
653f890d22 Fixes bug MDL-8695 "Form 'required' icon is hidden", see commit 13 Jan (big woops, forgot to commit on 1/3). 2007-03-30 10:15:18 +00:00
tjhunt
46e910c7cd Fix notice. Merged from MOODLE_17_STABLE. 2007-03-30 09:34:05 +00:00
skodak
f4f2b8fbf4 MDL-8590 fixed magic quotes in config settings; merged from MOODLE_18_STABLE 2007-03-29 19:05:16 +00:00
tjhunt
fb708c1130 MDL-6269, MDL-8958, MDL-8990 - Major fix to do with each attempt builds on last:
It used not to work with random questions, and there were problems with the computation of the grade, and regrading. Fix thanks to Paulo Matos, who not only fixed the bug and tested it, but was also incredibly patient waiting for me to have time to commit the changes to CVS.

Merged from MOODLE_17_STABLE.
2007-03-29 16:36:16 +00:00
tjhunt
a6b691d84d Add developer debugging to something that should not happen, and fix one instance of it. 2007-03-29 16:05:55 +00:00
skodak
f5fd4347dd MDL-8973 auth hooks final cleanup; merged from MOODLE_18_STABLE 2007-03-28 08:28:02 +00:00
moodler
999d2214a3 Merged conversion from dos to unix MDL-9088 2007-03-28 07:17:26 +00:00
stronk7
86041b7e84 Now XMLDBStatements support backslashed single quotes.
Merged from MOODLE_18_STABLE
2007-03-27 20:31:18 +00:00
skodak
c7b10b5f67 MDL-9053 - adding new function get_enabled_auth_plugins() - this should make the code simpler and the bug should be gone forever; merged from MOODLE_18_STABLE 2007-03-27 20:26:05 +00:00
toyomoyo
863fb22dd7 merged fix for MDL-9057, invalid contexts should be ignored 2007-03-27 03:04:15 +00:00
skodak
c7888a90bc MDL-9056 Undefined property in lib/db/upgrade.php; merged from MOODLE_18_STABLE 2007-03-26 21:47:46 +00:00
skodak
111e236005 MDL-9055 wrong creation of mnet auth object in require_logout() + minor cleanup; merged from MOODLE_18_STABLE 2007-03-26 20:35:04 +00:00
skodak
922c5b362d MDL-8513 fixed conversion of ldap settings during upgrade to 1.8; merged from MOODLE_18_STABLE 2007-03-26 20:15:45 +00:00
nicolasconnault
86aae61ee7 MDL-8730: These libxml_* functions are PHP5 only. I've wrapped them in function_exists() conditional structures. 2007-03-26 03:42:22 +00:00
nicolasconnault
5db0cffcf6 MDL-8922: Had to modify another bunch of files to fix a simple problem:
when a config block contains a form, the previous form needs to be closed
properly (it was, but there were non-matching closing divs etc...).
2007-03-26 03:06:45 +00:00
toyomoyo
5c91baaa46 patching up module level manageactivies capability so that you only need it assigned at mod level to update an activity 2007-03-26 02:55:03 +00:00
stronk7
b59c7ec0ee Fetch local guest user using DB index.
Merged from MOODLE_18_STABLE
2007-03-23 15:57:46 +00:00
skodak
2c793dc775 MDL-9017 add mime type for ico files; merged from MOODLE_18_STABLE 2007-03-23 13:06:51 +00:00
nicolasconnault
4d0ccfa7de MDL-8922 More work on fixing RSS block XHTML 2007-03-23 08:01:01 +00:00
toyomoyo
9251b26fe8 merged fix for MDL-9016, clear context cache after remove_course_contents() 2007-03-23 07:21:27 +00:00
tjhunt
6fd3300925 Make debugging more helpful by printing a full stack trace. 2007-03-22 16:43:48 +00:00
skodak
cb6a4f09ee MDL-9007 weblib.php breaks upper-case hex Numeric Character References; patch by Gareth Morgan; merged from MOODLE_18_STABLE 2007-03-22 16:37:55 +00:00
skodak
6bc1e5d577 (MDL-8973) Fix OOP model of new multi auth plugins + some other auth related fixes, fixed change_password, ldap updates, etc.; TODO: fix docs 2007-03-22 12:27:52 +00:00
toyomoyo
0150c561c5 fix for MDL-8966, customizable role names 2007-03-22 08:11:30 +00:00
nicolasconnault
cddbd5d5fe MDL-8807: The icon's title attribute wasn't being updated along with its img.src
MDL-8997: A couple of typos: groupseparate instead of groupsseparate etc...
2007-03-22 07:16:57 +00:00
toyomoyo
b318ecfd47 MDL-8965, adding db table to support sorting or course manager roles in course 2007-03-22 07:14:43 +00:00
nicolasconnault
b1c72d0a07 MDL-8807 and MDL-8564: Jamie had replaced the three group modes with Yes and No, for some
undocumented reason (See http://moodle.cvs.sourceforge.net/moodle/moodle/lib/form/modgroupmode.php?diff_format=h&view=log&pathrev=MOODLE_18_STABLE#revtext).
I reverted his changes, and this seems to work normally now.
2007-03-22 05:24:29 +00:00
toyomoyo
f38dfd49aa MDL-7164, Mark Nielsen's patch for remove_course_content not calling instance_delete() 2007-03-22 02:11:51 +00:00