Commit graph

4264 commits

Author SHA1 Message Date
stronk7
1afef7d9b3 Now insert/update/set of BINATY fields is supported by MSSQL
(and easier to add new DB in the furure) MDL-7062

Merged from MOODLE_17_STABLE
2006-10-17 23:37:58 +00:00
tjhunt
95ac8a4039 MDL-6315 - Manually grading a question 0 marks was not being registered. I took the opportunity to clean up the logic in this function a bit. Merged from MOODLE_16_STABLE. 2006-10-17 23:23:18 +00:00
skodak
1bacd276a7 fixed role_capabilities table name typo; merged from MOODLE_17_STABLE 2006-10-17 21:41:24 +00:00
skodak
4090bcaee3 Activitynames filter case insensitive again for non-ascii languages MDL-6054 - I hope it will not be choking on invalid UTF-8 data; merged from MOODLE_17_STABLE 2006-10-17 19:46:35 +00:00
stronk7
e45346f98e Fixed typo that was preventing correct BLOB storage under Oracle.
Merged from MOODLE_17_STABLE
2006-10-17 18:31:56 +00:00
tjhunt
ad6e05238f MDL-6760 - cannot insert the string 'null' into the database. You can now. Merged from MOODLE_17_STABLE. 2006-10-17 15:58:09 +00:00
cap2501
4006726277 Disabled debug flag to improve performance
(the flags are set per 'class' on class.prototype.debug)
2006-10-17 15:53:48 +00:00
cap2501
9569653d63 Disabled logging of Debug Messages to improve performance 2006-10-17 15:52:05 +00:00
skodak
a32a53d2a4 RSS update and caching broken for some feeds MDL-7045; merged from MOODLE_17_STABLE 2006-10-17 07:09:18 +00:00
vyshane
4fc45e1dde Merge from 1.7 2006-10-17 05:33:18 +00:00
vyshane
7f933d8f71 Merged from 1.7. 2006-10-17 04:00:57 +00:00
stronk7
d5eff6795e Added support for getSequenceFromDB() to PG.
Merged from MOODLE_17_STABLE
2006-10-16 17:36:13 +00:00
tjhunt
7c9d46c96e Related to MDL-6249 - unit tests for address_in_subnet. Merged from MOODLE_17_STABLE. 2006-10-16 13:40:26 +00:00
tjhunt
df90796155 MDL-6249 - easier way for human beings (as opposed to network engineers) to specify IP ranges. Merged from MOODLE_17_STABLE. 2006-10-16 13:38:36 +00:00
jamiesensei
c08ac01627 added new dummy function to moodleform to allow some defintion to be done for the form dependent on data values. 2006-10-16 12:07:44 +00:00
skodak
23a97d83e8 reverting moved $SITE reinitialisation into setting method, it was not a good idea after all; merged from MOODLE_17_STABLE 2006-10-16 08:54:37 +00:00
skodak
6192fd6860 fixed error message when empty site full or short name - moved $SITE reinitialisation into setting method; merged from MOODLE_17_STABLE 2006-10-16 07:54:22 +00:00
skodak
c4ea5e7801 PARAM_MULTILANG is now alias of PARAM_TEXT; merged from MOODLE_17_STABLE 2006-10-16 07:46:35 +00:00
skodak
b89639f9ef fixed error message when empty site full or short name; merged from MOODLE_17_STABLE 2006-10-16 07:37:41 +00:00
stronk7
32ac847351 New block upgrade functions must be called:
xmldb_block_BLOCKNAME_upgrade()

Part of MDL-6786, just for consistency. Merged from MOODLE_17_STABLE
2006-10-15 23:04:06 +00:00
stronk7
6b7be6d74f Now set_field() supports Oracle LOBs. Better error handling of oracle_update_lobs()
Merged from MOODLE_17_STABLE
2006-10-15 20:21:27 +00:00
stronk7
73ad2d0c29 Now update_record() supports LOBs under Oracle. Plus prevent empty objects to be updated.
Merged from MOODLE_17_STABLE
2006-10-15 19:40:33 +00:00
stronk7
1a8078073e Minor changes + debug info in UpdateXlob()
Merged from MOODLE_17_STABLE
2006-10-15 18:37:01 +00:00
stronk7
b825e563c0 - Introducing the first version of the new mssql_n adodb driver (not finished, just for experimenting).
- Now insert_record() is handling Oracle CLOBS and BLOBS properly (really annoying the number of hacks needed).
- Creating one new global object to cache $db->MetaColumns() calls per request, because it's being used
in a lot of places inside dmllib.
TODO: hack update_record() and set_field() to allow Oracle LOBs
      enclose all the Oracle function calls into one db transaction

Merged from MOODLE_17_STABLE
2006-10-15 16:41:55 +00:00
jamiesensei
5bc97c9862 Fixed a bug with client side validation of form fields.
Added some default error messages for rules specified in lang pack as err_{rulename} Use the default by setting the rule message to null.
2006-10-14 12:32:31 +00:00
moodler
f1e4c519df Fixed some words 2006-10-14 07:29:34 +00:00
jamiesensei
c56f18269e added some methods to give a choice of
setDefault and setDefaults
setHelpButton and setHelpButtons
setType and setTypes
2006-10-12 14:15:59 +00:00
stronk7
906eebf6ad Small change in rename_field() so objects won't become modified at all
in the process.

Merged from MOODLE_17_STABLE
2006-10-12 12:28:36 +00:00
skodak
e7dcb0fccc moodleform->validation() receives slashed $data now to make it similar to data_submitted() and prevent potential SQL injections 2006-10-12 09:53:32 +00:00
vyshane
e1c15ef7c9 Merged from 1.7 2006-10-12 07:35:55 +00:00
skodak
7f40a229a4 New version of formslib.php (see MDL-6914 for more details), course/edit2.php is disabled for now - working on edit3.php ;-)
More inline comments/docs today.
2006-10-12 07:33:57 +00:00
moodler
215965673b Merged MDL-6885 from stable 2006-10-12 07:28:22 +00:00
skodak
9d2afb7095 import of new adodb 4.93 with our small fixes and tweaks MDL-6919; it should be now possible to solve MDL-6760 can't use the word null in a question answer in the commit message 2006-10-11 18:40:14 +00:00
tjhunt
014094c42d Take out 8) smiliey that interfeers with ligitimate content like (1998). Merged from MOODLE_17_STABLE. 2006-10-11 16:30:51 +00:00
vyshane
db5308e25b Merged from 1.7 2006-10-11 06:58:35 +00:00
jamiesensei
e9d39a3215 added new form element datetimeselector 2006-10-11 06:30:03 +00:00
moodler
bface4fe3c Merged fix for MDL-6910 2006-10-11 06:25:45 +00:00
moodler
2d5a4f255b Merged fixes for MDL-6907 from stable 2006-10-11 06:21:58 +00:00
moodler
f4e2d38aaf Improved has_capability for admins using switchrole in modules 2006-10-11 05:49:26 +00:00
toyomoyo
96986241f5 merged change, fixed a bug where'0' is written when calling capability_assign() 2006-10-11 02:18:09 +00:00
nfreear
1bece9174c Fixes bug, "Warning: Invalid argument supplied for foreach() in /var/www/html/ndf42/head/lib/blocklib.php on line 174" 2006-10-10 11:03:35 +00:00
toyomoyo
4473252d7c changing default capabilities for coursecreators so that they could create courses 2006-10-10 03:03:17 +00:00
toyomoyo
7246585a70 setting default value for backup/restore capabilities for teacheredit and coursecreators 2006-10-10 02:52:08 +00:00
cap2501
c4308cfa1b Bug:MDL-6674
made changes to blocks_exeute_repositioning_atomic to fix some logic errors with shifting around the weight list
2006-10-10 02:06:51 +00:00
stronk7
a08a698895 Updated moodle notes to reflect latest change to odbc_mssql driver. 2006-10-09 23:39:32 +00:00
stronk7
d5d50c2d54 Fixed ServerInfo() behaviour for odbc_mssql. We need this working properly NOW!
(will be back once ADOdb code supports it properly)
2006-10-09 23:36:27 +00:00
stronk7
97ab73aad4 Add odbc_msql dbtype to a bunch of places. 2006-10-09 22:55:55 +00:00
stronk7
354bb6035a And now, Moodle is able to work with the odbc_mssql driver. Simple! B-) 2006-10-09 22:29:52 +00:00
stronk7
1c460b0bc9 Show error if the dbtype specified isn't supported by XMLDB 2006-10-09 22:28:22 +00:00
stronk7
cd2acc4aa1 Added MetaIndexes() support to the odbc_mssql driver. We need it NOW!
I've posted one comment about this in ADOdb forums:

http://phplens.com/lens/lensforum/msgs.php?id=15930
2006-10-09 22:26:21 +00:00