tjhunt [Wed, 23 Aug 2006 19:04:24 +0000 (19:04 +0000)]
MDL-6338 - Short answer questions with ' in the answer don't work. Merged from MOODLE_16_STABLE.\r\rYet another unpleasant quiz bug caused by the current broken way we do things with addslashes.
toyomoyo [Wed, 23 Aug 2006 06:36:08 +0000 (06:36 +0000)]
various changes - loading capabilities for questions, quiz, hide tab if no assignalbe or no overridable role is found, added some functions and comments in accesslib
tjhunt [Tue, 22 Aug 2006 13:53:39 +0000 (13:53 +0000)]
Reverting toyomoyo's conversion of mod/quiz/view.php to roles because his changes made no sense.
Admittedly, this file is pretty incomprehensible and it is not clear at first what it is trying to do. (Even though it is more comprehensible now than it was a week ago.) I'll to a proper conversion of this file to RnP once I have checked in my other changes there - assuming I can actually get Moodle to work so I can test my changes.
stronk7 [Mon, 21 Aug 2006 12:28:46 +0000 (12:28 +0000)]
Reducing the list of MSSQL reserved words to the efectively
reserved words (the previous list included a lot of words
reserved by SQLXX standars but not by MSSQL)
stronk7 [Mon, 21 Aug 2006 12:04:48 +0000 (12:04 +0000)]
Reducing the list of PG reserved words to the efectively
reserved words (the previous list included a lot of words
reserved by SQLXX standars but not by PG)
vyshane [Mon, 21 Aug 2006 06:56:04 +0000 (06:56 +0000)]
Removed $forum->open, $forum->assesspublic from code. Fixed bug in upgrade
code, changed module config form to accomdate removal of forum.assesspublic
and forum.open.
skodak [Mon, 21 Aug 2006 06:54:00 +0000 (06:54 +0000)]
import of ADODB v4.91 and general cleanup, removed some unused files - see readme_moodle.txt; new session2 code needs a new table, I am going to use the new database functions for that later, for now we are using the old table and old database session code.
toyomoyo [Mon, 21 Aug 2006 05:19:16 +0000 (05:19 +0000)]
fix for bug #6307, reserved word 'level' changed to 'aggregatelevel' for Oracle. Some parts could be broken by this. please report breakage asap! Thanks
vinkmar [Mon, 21 Aug 2006 04:06:58 +0000 (04:06 +0000)]
fixed tabs, fixed potential notices for undefined variables, added structure that will be used for detecting what variables to flag during installs & upgrades, removed all $_GET usage, switched 'admin' to $CFG->admin (for directory paths), and fixed blank line at end of index.php
stronk7 [Sun, 20 Aug 2006 18:19:50 +0000 (18:19 +0000)]
Since PostgreSQL 7.4 the precision given for float columsn is
the number of bits to use, and not the number of decimals. So,
based on the number of decimals from the XMLDB schema, we are
going to create REAL (<6 decimals) or DOUBLE PRECISION (>=6) columns.
stronk7 [Sun, 20 Aug 2006 09:37:56 +0000 (09:37 +0000)]
First commit for the progressive adoption of ADODB's SelectLimit() function
in order to support LIMIT clauses in a cross-db compatible way.
Changes don't affect old sentences at all (all them would be changed soon too).
vinkmar [Sat, 19 Aug 2006 01:38:57 +0000 (01:38 +0000)]
Fixed error that caused self_test failure during initial install; made changes for PHP4 compatibility (no use of instanceof, no use of private/protected/public)
stronk7 [Fri, 18 Aug 2006 22:56:08 +0000 (22:56 +0000)]
Splitting datalib.php in three libraries:
- ddllib.php: Where all the DDL (install/upgrade) functions will be.
- dmllib.php: Where all the DML (select...) functions will be.
- datalib.php: Legacy lib. Its contents should go to other libraries soon.
For more info see: http://docs.moodle.org/en/XMLDB_Roadmap (point 1)
tjhunt [Fri, 18 Aug 2006 22:34:54 +0000 (22:34 +0000)]
Bug #6293 - Cannot regrade a question when a teacher has added a comment with a ' - Merged from MOODLE_16_STABLE.\r\rStupid, wreched, datalib.\r\rWhy can't datalib take care of addslashes, so the whole of the rest of the code can forget about it? That is how a database abstraction layer should work.\r\rI know, it is pointless to moan about it, but it has just cost me 3 hours, so I feel I have earned the right to moan.