Commit graph

4491 commits

Author SHA1 Message Date
stronk7
cb4c207832 Adding limitfrom and limitnum parameters to a bunch of
rarely executed functions...

Merged from MOODLE_17_STABLE
2006-10-22 22:37:30 +00:00
moodler
721d14cbfe Merged fixes for recent activity from stable MDL-7134 2006-10-22 07:42:04 +00:00
skodak
013f2e7cd9 fix has_capability() to work when $nomoodlecookie = true; MDL-7156 - needed for RSS file.php that is serving feeds; merged from MOODLE_17_STABLE 2006-10-21 20:42:50 +00:00
stronk7
8914508a4b Prevent add_field() to work if we are adding one not null field
to one non-empty table without specifying its default value.

Merged from MOODLE_17_STABLE
2006-10-21 18:19:47 +00:00
moodler
81cc8046c4 Merged My Courses fixes from stable 2006-10-21 16:36:31 +00:00
stronk7
04c9f8dcc2 One typo (!==) was preventing defaults to be properly calculated for integers.
Thanks to Nigel McNie for being on that!

Merged from MOODLE_17_STABLE
2006-10-21 16:36:16 +00:00
moodler
49e6751073 Make sure LAMS is off if we don't need it (merged from stable) 2006-10-21 16:14:27 +00:00
moodler
2176adf169 Merged some checks from stable 2006-10-21 14:53:47 +00:00
vyshane
286e1f0e18 Merged from 1.7 2006-10-20 03:18:06 +00:00
toyomoyo
ac57f76122 merged fox for MDL-7113, removing DISTINCT on TEXT field 2006-10-20 02:44:22 +00:00
toyomoyo
207355b438 merged, setting $CFG->unicodedb after converting db to unicode. Chaning the order of if clause to same some sqls 2006-10-20 02:08:21 +00:00
mjollnir_
722c3bfede error reporting for xmldb (credit: Nigel McNie <nigel@catalyst.net.nz>) 2006-10-19 23:30:28 +00:00
skodak
6a1cfff27e Internal zipping broken on win32 MDL-7105 ; we are now using the new method to specify file names in zip archive because the old PCLZIP_OPT_REMOVE_PATH option is broken on win32 platforms 2006-10-19 22:13:03 +00:00
stronk7
b2ad03364b Adding support for the new mssql_n driver
Merged from MOODLE_17_STABLE
2006-10-19 22:07:21 +00:00
stronk7
ed4b4bf1d0 New ADOdb driver that extends the standard mssql one. All it does is
to prepend the 'N' char before any SQL literal sent to DB, mainly
because nobody (ODBTP, FreeTDS, ODBC, SQL*Server) seems to be doing
this task, and it prevents, in an high degree true cross-db compatibility.

Once we've moved to prepared statements and some of the developers for
any of the products above (hopefully MS, at server level) will avoid
the 'N', we'll be able to go back to another mssql drivers.

More info at:
  - http://docs.moodle.org/en/XMLDB_Problems (point 8)
  - http://tracker.moodle.org/browse/MDL-6877
2006-10-19 21:57:23 +00:00
stronk7
bf42ceed7f Addding support for the new mssql_n ADOdb driver that,
transparently, prepends the N char for all the string
literals being set to MSSQL (until MS Unicode - standard-
support will arrive).

Merged from MOODLE_17_STABLE
2006-10-19 17:29:37 +00:00
toyomoyo
b7cec865f4 merged, making the site context and site course context the same 2006-10-19 06:16:35 +00:00
vyshane
6f00683e98 Merged from 1.7 2006-10-19 04:33:56 +00:00
toyomoyo
c30f752c30 merged, adding addtional check to change_db_encoding to make sure db not already in unicode, upon successful conversion set the correct names 2006-10-19 02:14:43 +00:00
vyshane
c081fdcaca Merged from 1.7 2006-10-18 09:47:44 +00:00
skodak
20d55a1b7b fix course reset unenrollment in to work with roles MDL-7069 ; merged from MOODLE_17_STABLE 2006-10-18 09:20:16 +00:00
vyshane
01059829c2 Merged from 1.7 2006-10-18 08:41:24 +00:00
vyshane
fc2e40e30e Merged from 1.7 2006-10-18 07:42:44 +00:00
toyomoyo
a6eb09d977 merged added code to force mysql db to change default encoding during fresh installation 2006-10-18 07:26:04 +00:00
vyshane
8b8a8779dc Merged from 1.7 2006-10-18 07:05:21 +00:00
toyomoyo
819e5a70c3 merged fix for MDL-7055 - prohibts at site level not working 2006-10-18 06:45:38 +00:00
toyomoyo
2058a0a1b2 merged fix for MDL-7065, adding translated string to breadcrumb 2006-10-18 05:41:45 +00:00
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