Commit graph

21246 commits

Author SHA1 Message Date
toyomoyo
d140ad3f7c fix for bug #6307, reserved word 'level' changed to 'aggregatelevel' for Oracle. Some parts could be broken by this. please report breakage asap! Thanks 2006-08-21 05:19:16 +00:00
vinkmar
e277678dab changes made to ensure compatibility with core admin (admin/adminlib.php) where $_GET is no longer used; changed 'admin' to $CFG->admin in dir paths 2006-08-21 04:08:57 +00:00
vinkmar
9acea96564 changes made to ensure compatibilty with core admin files (admin/adminlib.php), where $_GET is no longer used 2006-08-21 04:08:00 +00:00
vinkmar
6fcbab99ef 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 2006-08-21 04:06:58 +00:00
toyomoyo
d37bac7e5d fix for 6294 2006-08-21 02:23:25 +00:00
mchampan
791a4cece1 Comments, update logic improved, rest of module add/delete functions added. 2006-08-21 00:50:29 +00:00
stronk7
0513f3bfa5 $statement_end for Oracle changed to "/" because standard ;
causes problems with trigger generation
2006-08-20 21:56:54 +00:00
tjhunt
dcc0a7e25f Bug #6305 - Quiz settings form field order could be better. Merged from MOODLE_16_STABLE. 2006-08-20 20:11:05 +00:00
stronk7
73bb7f8db0 Setting some ADOdb variables properly and calling to the new
configure_dbconnection() function to set DB encoding and other
preliminar settings.
2006-08-20 18:22:48 +00:00
stronk7
d086d854a8 Added the configure_dbconnection() function to be executed
after DB conection. Responsible to set a lot of things
(charsets, dbsession variables...)
2006-08-20 18:21:33 +00:00
stronk7
f9543de627 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.
2006-08-20 18:19:50 +00:00
stronk7
16f07ff2b0 MySQL doesn't like any name on its primary keys (neither "primary") 2006-08-20 18:03:55 +00:00
stronk7
c412278140 Although difficult, now all the key/index/sequence/trigger names
are quoted if they are reserved words
2006-08-20 18:01:50 +00:00
stronk7
134e3128bb Added the install_from_xmldb_file() function that
loads, transform and execute one entire XMLDB
file into the correct SQL sentences.
2006-08-20 15:50:27 +00:00
tjhunt
0f49e5655d Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE. 2006-08-20 15:37:42 +00:00
tjhunt
948bf30099 Fix Eclipse warnings. 2006-08-20 15:30:31 +00:00
stronk7
420f683619 Core tables XMLDB installation is now working. Disabled by default
until fully working.

$CFG->xmldb_enabled = true; will enable it for test/dev against any DB
2006-08-20 11:20:40 +00:00
stronk7
293bccd539 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).
2006-08-20 09:37:56 +00:00
vinkmar
36647b9fbb More PHP4 compatibility issues fixed. 2006-08-20 03:56:25 +00:00
skodak
7f5495053f fixed short php tag and end tag in comment 2006-08-19 11:15:59 +00:00
moodler
3566b97c4a Fixing some strings 2006-08-19 08:21:05 +00:00
moodler
c06140513d Fixed up get_user_roles to remove notices 2006-08-19 08:12:45 +00:00
tjhunt
707b5c9953 Renamed unit tests to match Eloy's work. 2006-08-19 07:47:41 +00:00
vinkmar
95cdbec95f Added paramtypes (mandatory) to all text field objects. 2006-08-19 05:34:25 +00:00
vinkmar
7ba710e6a3 Small bug fix. Caused problems when moving or deleting blocks. 2006-08-19 05:32:56 +00:00
moodler
9f948d1136 Just minor doc tweaks 2006-08-19 02:58:07 +00:00
moodler
6e0993ee48 Just tidying up things a bit as I look it over 2006-08-19 02:46:46 +00:00
moodler
dfcf72ba94 Automatic installer.php lang files by installer_builder (20060819) 2006-08-19 02:45:53 +00:00
vinkmar
085dfc0c20 solving the issue with an undefined sesskey (happens when there is no user logged in) 2006-08-19 02:26:01 +00:00
vinkmar
fea42164fb preventing notifications by using isset() unsparingly (i.e. small bug fixes) 2006-08-19 02:21:44 +00:00
vinkmar
ccad2d8e7d Modifications made for PHP4 compatibility. 2006-08-19 01:40:54 +00:00
vinkmar
0155cf991d 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) 2006-08-19 01:38:57 +00:00
vinkmar
63aafc9e56 Fixing errors in admin page cleanup; working towards compatibility with PHP4 (use of interfaces, private/protected/public, instanceof all removed). 2006-08-19 01:37:38 +00:00
stronk7
465a802937 Thought this was commited. Solve one bug in trigger generation 2006-08-19 00:58:30 +00:00
stronk7
7e13be0887 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)
2006-08-18 22:56:08 +00:00
tjhunt
ef82286874 Bug #6293 - Cannot regrade a question when a teacher has added a comment with a ' - Merged from MOODLE_16_STABLE. Stupid, wreched, datalib. Why 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. I 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. 2006-08-18 22:34:54 +00:00
tjhunt
865b753486 Code cleanup. Merged from MOODLE_16_STABLE. 2006-08-18 22:26:04 +00:00
vinkmar
708870d3a8 added blank footer (to eliminate the notice when $footer is non-existant) 2006-08-18 22:02:09 +00:00
vinkmar
3d8ef99d9e Blocks fixed in admin pagelib, and (hopefully) many notices pointed out in the general forum board no longer show up. 2006-08-18 22:00:37 +00:00
tjhunt
4abc23b2ae Fix some Eclipse code warnings. Merged from MOODLE_16_STABLE. 2006-08-18 21:23:15 +00:00
vinkmar
0b4073cedb trying to prevent an undefined index error 2006-08-18 19:27:02 +00:00
ethem
516b138516 Colorize all orders. 2006-08-18 17:10:30 +00:00
ethem
be4f7e7fec Colorize refunds and show refunded total.
Red: Refunded/Pending Settlement
Green: Refunded/Settled
Black: Cancelled
2006-08-18 16:01:47 +00:00
ethem
49c22bc46b Display capture/void/delete instead of 'Yes'; Merged from 16stable. 2006-08-18 14:54:08 +00:00
tjhunt
5553c2ec47 New function record_exists_select with unit tests for all the record_exists_* functions. 2006-08-18 11:28:30 +00:00
tjhunt
bc2defd5f8 Bug #3481 - wildcard problem in cloze question. Thanks to Joseph Rezeau. Merged from MOODLE_16_STABLE, not a straight merge becuase of other 1.7 changes. 2006-08-18 10:29:34 +00:00
moodler
d100b8a04d Make sure .htaccess is created in dataroot, just in case 2006-08-18 09:54:09 +00:00
vinkmar
cdb46b63d2 more bugs! incompatibility with php 5.1.2 (presumably earlier versions as well) fixed 2006-08-18 08:40:58 +00:00
vinkmar
bb14a9e3b7 admin page cleanup blocks (new ones!) 2006-08-18 08:25:02 +00:00
vinkmar
c74af0688f adding admin page cleanup blocks (new ones!) 2006-08-18 08:24:07 +00:00