]> git.mjollnir.org Git - moodle.git/log
moodle.git
18 years agoNormalizing a bit all the float/double generators.
stronk7 [Tue, 22 Aug 2006 22:10:09 +0000 (22:10 +0000)]
Normalizing a bit all the float/double generators.

18 years agoRewritten help.php by Tim Hunt with minor fixes - SC#292; merged from MOODLE_16_STABLE
skodak [Tue, 22 Aug 2006 22:04:06 +0000 (22:04 +0000)]
Rewritten help.php by Tim Hunt with minor fixes - SC#292; merged from MOODLE_16_STABLE

18 years agoquiz_feedback added to XMLDB
stronk7 [Tue, 22 Aug 2006 21:55:20 +0000 (21:55 +0000)]
quiz_feedback added to XMLDB

18 years agoSmall typo. ;-)
stronk7 [Tue, 22 Aug 2006 21:44:07 +0000 (21:44 +0000)]
Small typo. ;-)

18 years agoSC 299. Merged from MOODLE_16_STABLE.
tjhunt [Tue, 22 Aug 2006 21:33:54 +0000 (21:33 +0000)]
SC 299. Merged from MOODLE_16_STABLE.

18 years agoChange rule to tzrule (reserved word)
stronk7 [Tue, 22 Aug 2006 21:19:52 +0000 (21:19 +0000)]
Change rule to tzrule (reserved word)

18 years agoUpdated using tzdata2006j
stronk7 [Tue, 22 Aug 2006 20:11:33 +0000 (20:11 +0000)]
Updated using tzdata2006j

18 years agoChange rule to tzrule (reserved word)
stronk7 [Tue, 22 Aug 2006 20:10:54 +0000 (20:10 +0000)]
Change rule to tzrule (reserved word)

18 years agoFix an obvious typo in the roles and permissions code.
tjhunt [Tue, 22 Aug 2006 19:26:05 +0000 (19:26 +0000)]
Fix an obvious typo in the roles and permissions code.

18 years agoFix Eclipse warnings.
tjhunt [Tue, 22 Aug 2006 19:09:52 +0000 (19:09 +0000)]
Fix Eclipse warnings.

18 years agoFix Eclipse warnings.
tjhunt [Tue, 22 Aug 2006 19:09:07 +0000 (19:09 +0000)]
Fix Eclipse warnings.

18 years agoWork round Eclipse warning.
tjhunt [Tue, 22 Aug 2006 19:01:42 +0000 (19:01 +0000)]
Work round Eclipse warning.

18 years agoFix Eclipse warnings.
tjhunt [Tue, 22 Aug 2006 19:00:18 +0000 (19:00 +0000)]
Fix Eclipse warnings.

18 years agoMDL-5270 - give students a feeback comment for their performance in the entire quiz.
tjhunt [Tue, 22 Aug 2006 17:31:26 +0000 (17:31 +0000)]
MDL-5270 - give students a feeback comment for their performance in the entire quiz.

Also, along the way I noticed and fixed MDL-6290 student grades not rescaled when quiz maximum grade changed.

18 years agoOne trick to allow pseudo-null Oracle insertions. Let's see what happen.
stronk7 [Tue, 22 Aug 2006 16:39:14 +0000 (16:39 +0000)]
One trick to allow pseudo-null Oracle insertions. Let's see what happen.

18 years agoUnbreak roles and permission on Postgres yet again.
tjhunt [Tue, 22 Aug 2006 16:18:11 +0000 (16:18 +0000)]
Unbreak roles and permission on Postgres yet again.

If you want a laugh, compare this fix the with the diff between revisions 1.5 and 1.6 of this file.

18 years agoStandard naming now user FOUR char for tables (to avoid
stronk7 [Tue, 22 Aug 2006 16:15:44 +0000 (16:15 +0000)]
Standard naming now user FOUR char for tables (to avoid
avoid some potential duplicates)

18 years agoReverting toyomoyo's conversion of mod/quiz/view.php to roles because his changes...
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.

18 years agoFix toyomoyo's syntax errors.
tjhunt [Tue, 22 Aug 2006 13:12:24 +0000 (13:12 +0000)]
Fix toyomoyo's syntax errors.

18 years agosome quiz capabilities
toyomoyo [Tue, 22 Aug 2006 09:04:23 +0000 (09:04 +0000)]
some quiz capabilities

18 years agoRemoved deprecated teacher forum type
vyshane [Tue, 22 Aug 2006 07:42:34 +0000 (07:42 +0000)]
Removed deprecated teacher forum type

18 years agoRemoved deprecated forum type teacher.
vyshane [Tue, 22 Aug 2006 07:38:01 +0000 (07:38 +0000)]
Removed deprecated forum type teacher.

18 years agoAdded prevent for mod/prevent:createattachment for default students and guests
vyshane [Tue, 22 Aug 2006 05:56:45 +0000 (05:56 +0000)]
Added prevent for mod/prevent:createattachment for default students and guests
in teacher forums

18 years agoUpgrade now works. Needs more testing.
vyshane [Tue, 22 Aug 2006 05:45:43 +0000 (05:45 +0000)]
Upgrade now works. Needs more testing.

18 years agoFixes:
vyshane [Tue, 22 Aug 2006 05:44:32 +0000 (05:44 +0000)]
Fixes:
1) has_capability call used in fullname()
2) initialised array $options
3) $context->level has been renamed to $context->aggregatelevel

18 years agoBug fixes:
vyshane [Tue, 22 Aug 2006 05:35:52 +0000 (05:35 +0000)]
Bug fixes:
1) Replaced isteacher call in fullname ($course undefined)
2) Initialised $options array

18 years agoRemoved forum->open config since roles will take over this
vyshane [Tue, 22 Aug 2006 02:43:58 +0000 (02:43 +0000)]
Removed forum->open config since roles will take over this

18 years agoNeed to pass the module id and not the object to add_course_module
vyshane [Tue, 22 Aug 2006 02:24:45 +0000 (02:24 +0000)]
Need to pass the module id and not the object to add_course_module

18 years agofixed some notices in scheduled backup; merged from MOODLE_16_STABLE
skodak [Mon, 21 Aug 2006 20:40:07 +0000 (20:40 +0000)]
fixed some notices in scheduled backup; merged from MOODLE_16_STABLE

18 years agoSolved hh (horrible-hidden) bug in backup_scheduled code.
stronk7 [Mon, 21 Aug 2006 19:10:21 +0000 (19:10 +0000)]
Solved hh (horrible-hidden) bug in backup_scheduled code.
Credits go to Thirot Jean-Luc. http://moodle.org/mod/forum/discuss.php?d=52156

Merged from MOODLE_16_STABLE

18 years agoChanged level (reserved word) to aggregatelevel.
stronk7 [Mon, 21 Aug 2006 14:59:48 +0000 (14:59 +0000)]
Changed level (reserved word) to aggregatelevel.

18 years agoReducing the list of MSSQL reserved words to the efectively
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)

18 years agoReducing the list of PG reserved words to the efectively
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)

18 years agoFixed bug - empty teacher forums (deleted) should not have a course module
vyshane [Mon, 21 Aug 2006 08:45:12 +0000 (08:45 +0000)]
Fixed bug - empty teacher forums (deleted) should not have a course module
created for them.

18 years agosome capabilities for quiz and questions, need to load them in access.php
toyomoyo [Mon, 21 Aug 2006 08:40:06 +0000 (08:40 +0000)]
some capabilities for quiz and questions, need to load them in access.php

18 years agoRemoved $forum->open, $forum->assesspublic from code. Fixed bug in upgrade
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.

18 years agoimport of ADODB v4.91 and general cleanup, removed some unused files - see readme_moo...
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.

18 years agoSemi-final version
cap2501 [Mon, 21 Aug 2006 06:15:24 +0000 (06:15 +0000)]
Semi-final version

18 years agoMain JS file for topic - ajax course format (still needs a little cleaning though)
cap2501 [Mon, 21 Aug 2006 06:14:43 +0000 (06:14 +0000)]
Main JS file for topic - ajax course format (still needs a little cleaning though)

18 years agoRestful interface for AJAX course format
cap2501 [Mon, 21 Aug 2006 06:13:28 +0000 (06:13 +0000)]
Restful interface for AJAX course format

18 years agofix for bug #6307, reserved word 'level' changed to 'aggregatelevel' for Oracle....
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

18 years agochanges made to ensure compatibility with core admin (admin/adminlib.php) where ...
vinkmar [Mon, 21 Aug 2006 04:08:57 +0000 (04:08 +0000)]
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

18 years agochanges made to ensure compatibilty with core admin files (admin/adminlib.php), where...
vinkmar [Mon, 21 Aug 2006 04:08:00 +0000 (04:08 +0000)]
changes made to ensure compatibilty with core admin files (admin/adminlib.php), where $_GET is no longer used

18 years agofixed tabs, fixed potential notices for undefined variables, added structure that...
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

18 years agofix for 6294
toyomoyo [Mon, 21 Aug 2006 02:23:25 +0000 (02:23 +0000)]
fix for 6294

18 years agoComments, update logic improved, rest of module add/delete functions added.
mchampan [Mon, 21 Aug 2006 00:50:29 +0000 (00:50 +0000)]
Comments, update logic improved, rest of module add/delete functions added.

18 years ago$statement_end for Oracle changed to "/" because standard ;
stronk7 [Sun, 20 Aug 2006 21:56:54 +0000 (21:56 +0000)]
$statement_end for Oracle changed to "/" because standard ;
causes problems with trigger generation

18 years agoBug #6305 - Quiz settings form field order could be better. Merged from MOODLE_16_STABLE.
tjhunt [Sun, 20 Aug 2006 20:11:05 +0000 (20:11 +0000)]
Bug #6305 - Quiz settings form field order could be better. Merged from MOODLE_16_STABLE.

18 years agoSetting some ADOdb variables properly and calling to the new
stronk7 [Sun, 20 Aug 2006 18:22:48 +0000 (18:22 +0000)]
Setting some ADOdb variables properly and calling to the new
configure_dbconnection() function to set DB encoding and other
preliminar settings.

18 years agoAdded the configure_dbconnection() function to be executed
stronk7 [Sun, 20 Aug 2006 18:21:33 +0000 (18:21 +0000)]
Added the configure_dbconnection() function to be executed
after DB conection. Responsible to set a lot of things
(charsets, dbsession variables...)

18 years agoSince PostgreSQL 7.4 the precision given for float columsn is
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.

18 years agoMySQL doesn't like any name on its primary keys (neither "primary")
stronk7 [Sun, 20 Aug 2006 18:03:55 +0000 (18:03 +0000)]
MySQL doesn't like any name on its primary keys (neither "primary")

18 years agoAlthough difficult, now all the key/index/sequence/trigger names
stronk7 [Sun, 20 Aug 2006 18:01:50 +0000 (18:01 +0000)]
Although difficult, now all the key/index/sequence/trigger names
are quoted if they are reserved words

18 years agoAdded the install_from_xmldb_file() function that
stronk7 [Sun, 20 Aug 2006 15:50:27 +0000 (15:50 +0000)]
Added the install_from_xmldb_file() function that
loads, transform and execute one entire XMLDB
file into the correct SQL sentences.

18 years agoBug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE.
tjhunt [Sun, 20 Aug 2006 15:37:42 +0000 (15:37 +0000)]
Bug #6303 - True / False applies penalty factor wrongly. Merged from MOODLE_16_STABLE.

18 years agoFix Eclipse warnings.
tjhunt [Sun, 20 Aug 2006 15:30:31 +0000 (15:30 +0000)]
Fix Eclipse warnings.

18 years agoCore tables XMLDB installation is now working. Disabled by default
stronk7 [Sun, 20 Aug 2006 11:20:40 +0000 (11:20 +0000)]
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

18 years agoFirst commit for the progressive adoption of ADODB's SelectLimit() function
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).

18 years agoMore PHP4 compatibility issues fixed.
vinkmar [Sun, 20 Aug 2006 03:56:25 +0000 (03:56 +0000)]
More PHP4 compatibility issues fixed.

18 years agofixed short php tag and end tag in comment
skodak [Sat, 19 Aug 2006 11:15:59 +0000 (11:15 +0000)]
fixed short php tag and end tag in comment

18 years agoFixing some strings
moodler [Sat, 19 Aug 2006 08:21:05 +0000 (08:21 +0000)]
Fixing some strings

18 years agoFixed up get_user_roles to remove notices
moodler [Sat, 19 Aug 2006 08:12:45 +0000 (08:12 +0000)]
Fixed up get_user_roles to remove notices

18 years agoRenamed unit tests to match Eloy's work.
tjhunt [Sat, 19 Aug 2006 07:47:41 +0000 (07:47 +0000)]
Renamed unit tests to match Eloy's work.

18 years agoAdded paramtypes (mandatory) to all text field objects.
vinkmar [Sat, 19 Aug 2006 05:34:25 +0000 (05:34 +0000)]
Added paramtypes (mandatory) to all text field objects.

18 years agoSmall bug fix. Caused problems when moving or deleting blocks.
vinkmar [Sat, 19 Aug 2006 05:32:56 +0000 (05:32 +0000)]
Small bug fix. Caused problems when moving or deleting blocks.

18 years agoJust minor doc tweaks
moodler [Sat, 19 Aug 2006 02:58:07 +0000 (02:58 +0000)]
Just minor doc tweaks

18 years agoJust tidying up things a bit as I look it over
moodler [Sat, 19 Aug 2006 02:46:46 +0000 (02:46 +0000)]
Just tidying up things a bit as I look it over

18 years agoAutomatic installer.php lang files by installer_builder (20060819)
moodler [Sat, 19 Aug 2006 02:45:53 +0000 (02:45 +0000)]
Automatic installer.php lang files by installer_builder (20060819)

18 years agosolving the issue with an undefined sesskey (happens when there is no user logged in)
vinkmar [Sat, 19 Aug 2006 02:26:01 +0000 (02:26 +0000)]
solving the issue with an undefined sesskey (happens when there is no user logged in)

18 years agopreventing notifications by using isset() unsparingly (i.e. small bug fixes)
vinkmar [Sat, 19 Aug 2006 02:21:44 +0000 (02:21 +0000)]
preventing notifications by using isset() unsparingly (i.e. small bug fixes)

18 years agoModifications made for PHP4 compatibility.
vinkmar [Sat, 19 Aug 2006 01:40:54 +0000 (01:40 +0000)]
Modifications made for PHP4 compatibility.

18 years agoFixed error that caused self_test failure during initial install; made changes for...
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)

18 years agoFixing errors in admin page cleanup; working towards compatibility with PHP4 (use...
vinkmar [Sat, 19 Aug 2006 01:37:38 +0000 (01:37 +0000)]
Fixing errors in admin page cleanup; working towards compatibility with PHP4 (use of interfaces, private/protected/public, instanceof all removed).

18 years agoThought this was commited. Solve one bug in trigger generation
stronk7 [Sat, 19 Aug 2006 00:58:30 +0000 (00:58 +0000)]
Thought this was commited. Solve one bug in trigger generation

18 years agoSplitting datalib.php in three libraries:
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)

18 years agoBug #6293 - Cannot regrade a question when a teacher has added a comment with a ...
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.

18 years agoCode cleanup. Merged from MOODLE_16_STABLE.
tjhunt [Fri, 18 Aug 2006 22:26:04 +0000 (22:26 +0000)]
Code cleanup. Merged from MOODLE_16_STABLE.

18 years agoadded blank footer (to eliminate the notice when $footer is non-existant)
vinkmar [Fri, 18 Aug 2006 22:02:09 +0000 (22:02 +0000)]
added blank footer (to eliminate the notice when $footer is non-existant)

18 years agoBlocks fixed in admin pagelib, and (hopefully) many notices pointed out in the genera...
vinkmar [Fri, 18 Aug 2006 22:00:37 +0000 (22:00 +0000)]
Blocks fixed in admin pagelib, and (hopefully) many notices pointed out in the general forum board no longer show up.

18 years agoFix some Eclipse code warnings. Merged from MOODLE_16_STABLE.
tjhunt [Fri, 18 Aug 2006 21:23:15 +0000 (21:23 +0000)]
Fix some Eclipse code warnings. Merged from MOODLE_16_STABLE.

18 years agotrying to prevent an undefined index error
vinkmar [Fri, 18 Aug 2006 19:27:02 +0000 (19:27 +0000)]
trying to prevent an undefined index error

18 years agoColorize all orders.
ethem [Fri, 18 Aug 2006 17:10:30 +0000 (17:10 +0000)]
Colorize all orders.

18 years agoColorize refunds and show refunded total.
ethem [Fri, 18 Aug 2006 16:01:47 +0000 (16:01 +0000)]
Colorize refunds and show refunded total.

Red: Refunded/Pending Settlement
Green: Refunded/Settled
Black: Cancelled

18 years agoDisplay capture/void/delete instead of 'Yes'; Merged from 16stable.
ethem [Fri, 18 Aug 2006 14:54:08 +0000 (14:54 +0000)]
Display capture/void/delete instead of 'Yes'; Merged from 16stable.

18 years agoNew function record_exists_select with unit tests for all the record_exists_* functions.
tjhunt [Fri, 18 Aug 2006 11:28:30 +0000 (11:28 +0000)]
New function record_exists_select with unit tests for all the record_exists_* functions.

18 years agoBug #3481 - wildcard problem in cloze question. Thanks to Joseph Rezeau. Merged from...
tjhunt [Fri, 18 Aug 2006 10:29:34 +0000 (10:29 +0000)]
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.

18 years agoMake sure .htaccess is created in dataroot, just in case
moodler [Fri, 18 Aug 2006 09:54:09 +0000 (09:54 +0000)]
Make sure .htaccess is created in dataroot, just in case

18 years agomore bugs! incompatibility with php 5.1.2 (presumably earlier versions as well) fixed
vinkmar [Fri, 18 Aug 2006 08:40:58 +0000 (08:40 +0000)]
more bugs! incompatibility with php 5.1.2 (presumably earlier versions as well) fixed

18 years agoadmin page cleanup blocks (new ones!)
vinkmar [Fri, 18 Aug 2006 08:25:02 +0000 (08:25 +0000)]
admin page cleanup blocks (new ones!)

18 years agoadding admin page cleanup blocks (new ones!)
vinkmar [Fri, 18 Aug 2006 08:24:07 +0000 (08:24 +0000)]
adding admin page cleanup blocks (new ones!)

18 years agoadmin page cleanup (bug fixes :) )
vinkmar [Fri, 18 Aug 2006 08:16:32 +0000 (08:16 +0000)]
admin page cleanup (bug fixes :) )

18 years agoAdded todo.
tjhunt [Fri, 18 Aug 2006 08:14:47 +0000 (08:14 +0000)]
Added todo.

18 years agoadding functions and interface for access control - role assignment and role overrides
toyomoyo [Fri, 18 Aug 2006 08:01:16 +0000 (08:01 +0000)]
adding functions and interface for access control - role assignment and role overrides

18 years agoReverting changes to file from admin page cleanup... whoops! Accidentally broke the...
vinkmar [Fri, 18 Aug 2006 07:52:56 +0000 (07:52 +0000)]
Reverting changes to file from admin page cleanup... whoops! Accidentally broke the install.

18 years agoadmin page cleanup (google soc 2006)... updated field name for category editing funct...
vinkmar [Fri, 18 Aug 2006 07:29:19 +0000 (07:29 +0000)]
admin page cleanup (google soc 2006)... updated field name for category editing function so that it doesn't conflict with 'edit' when used for blocks

18 years agoadmin page cleanup (google soc 2006)... updated to use new pagelib
vinkmar [Fri, 18 Aug 2006 07:27:05 +0000 (07:27 +0000)]
admin page cleanup (google soc 2006)... updated to use new pagelib

18 years agoupdated for admin page cleanup
vinkmar [Fri, 18 Aug 2006 07:26:25 +0000 (07:26 +0000)]
updated for admin page cleanup

18 years agoAdmin page cleanup (Google soc 2006)
vinkmar [Fri, 18 Aug 2006 07:25:17 +0000 (07:25 +0000)]
Admin page cleanup (Google soc 2006)

18 years agoAdmin page cleanup (google soc 2006)
vinkmar [Fri, 18 Aug 2006 07:23:02 +0000 (07:23 +0000)]
Admin page cleanup (google soc 2006)

18 years agoUpdated upgrade to roles system
vyshane [Fri, 18 Aug 2006 07:08:14 +0000 (07:08 +0000)]
Updated upgrade to roles system