moodle.git
14 years agomigrated signup.php over to using new formslib
jamiesensei [Tue, 24 Oct 2006 11:10:48 +0000 (11:10 +0000)]
migrated signup.php over to using new formslib

14 years agoadded a method to return javascript to select form element with first error for use...
jamiesensei [Tue, 24 Oct 2006 11:05:50 +0000 (11:05 +0000)]
added a method to return javascript to select form element with first error for use in focus in print_header

14 years agoMerged from 1.7.
vyshane [Tue, 24 Oct 2006 09:42:06 +0000 (09:42 +0000)]
Merged from 1.7.

14 years agoMerged from 1.7.
vyshane [Tue, 24 Oct 2006 08:13:13 +0000 (08:13 +0000)]
Merged from 1.7.

14 years agoMerged from 1.7
vyshane [Tue, 24 Oct 2006 08:11:38 +0000 (08:11 +0000)]
Merged from 1.7

14 years agofixed risks associated with capabilitites in modules MDL-7174; merged from MOODLE_17_...
skodak [Tue, 24 Oct 2006 08:06:56 +0000 (08:06 +0000)]
fixed risks associated with capabilitites in modules MDL-7174; merged from MOODLE_17_STABLE

14 years agofixed risks associated with main capabilitites MDL-7174; merged from MOODLE_17_STABLE
skodak [Tue, 24 Oct 2006 08:02:26 +0000 (08:02 +0000)]
fixed risks associated with main capabilitites MDL-7174; merged from MOODLE_17_STABLE

14 years agoAdded CAM support to SCORM 2004 3rd Edition
bobopinna [Tue, 24 Oct 2006 07:35:11 +0000 (07:35 +0000)]
Added CAM support to SCORM 2004 3rd Edition

14 years agoFIxed problem which was unenrolling some assigns at the site level! MDL-7189
moodler [Tue, 24 Oct 2006 07:07:54 +0000 (07:07 +0000)]
FIxed problem which was unenrolling some assigns at the site level!   MDL-7189

14 years agomerged fixing capabilities
toyomoyo [Tue, 24 Oct 2006 04:26:46 +0000 (04:26 +0000)]
merged fixing capabilities

14 years agoMerged from 1.7
vyshane [Tue, 24 Oct 2006 03:26:55 +0000 (03:26 +0000)]
Merged from 1.7

14 years agoMerged fix for trusttext from stable
moodler [Tue, 24 Oct 2006 02:36:13 +0000 (02:36 +0000)]
Merged fix for trusttext from stable

14 years agoMerged guest enrol fixes. MDL-7182
moodler [Tue, 24 Oct 2006 02:13:42 +0000 (02:13 +0000)]
Merged guest enrol fixes.   MDL-7182

14 years agomerged, blog tab clean up
toyomoyo [Tue, 24 Oct 2006 02:10:46 +0000 (02:10 +0000)]
merged, blog tab clean up

14 years agoMoving deprecated uses of sql_paging_limit() to the new $limitfrom,
stronk7 [Mon, 23 Oct 2006 23:00:18 +0000 (23:00 +0000)]
Moving deprecated uses of sql_paging_limit() to the new $limitfrom,
$limitnum parameters in all the get_recordXXX() functions. MDL-7167

Merged from MOODLE_17_STABLE

14 years agofixed moodle/calendar:manageentries capability in calendar; merged from MOODLE_17_STABLE
skodak [Mon, 23 Oct 2006 22:28:52 +0000 (22:28 +0000)]
fixed moodle/calendar:manageentries capability in calendar; merged from MOODLE_17_STABLE

14 years agoAssignment Reports incomplete MDL-6301 ; merged from MOODLE_17_STABLE
skodak [Mon, 23 Oct 2006 21:02:57 +0000 (21:02 +0000)]
Assignment Reports incomplete MDL-6301 ; merged from MOODLE_17_STABLE

14 years agoExcel export returns a zero bytes file when system temp not writable MDL-7176; merged...
skodak [Mon, 23 Oct 2006 19:26:20 +0000 (19:26 +0000)]
Excel export returns a zero bytes file when system temp not writable MDL-7176; merged from MOODLE_17_STABLE

14 years ago error message when adding a link in editor MDL-7180 ; merged from MOODLE_17_STABLE
skodak [Mon, 23 Oct 2006 18:31:08 +0000 (18:31 +0000)]
 error message when adding a link in editor MDL-7180 ; merged from MOODLE_17_STABLE

14 years agoNow insert_record() is using $db->GenID() to retrieve
stronk7 [Mon, 23 Oct 2006 17:46:08 +0000 (17:46 +0000)]
Now insert_record() is using $db->GenID() to retrieve
sequence numbers for Oracle. Just wondering if the same
function should be used by PostgreSQL too. MDL-7183

Merged from MOODLE_17_STABLE

14 years agoSuppress all the uses of LIMIT in the get_field_sql() calls. MDL-7173
stronk7 [Mon, 23 Oct 2006 16:03:52 +0000 (16:03 +0000)]
Suppress all the uses of LIMIT in the get_field_sql() calls. MDL-7173

Merged from MOODLE_17_STABLE

14 years agoThis new function called load_all_capabilities() should be used whenever
moodler [Mon, 23 Oct 2006 15:17:31 +0000 (15:17 +0000)]
This new function called load_all_capabilities() should be used whenever
you want to completely reload the capabilities for the current user.

Basically it will deal nicely with the default site-wide permissions
depending on the current user.

More background in the comments on MDL-6963

Merged from stable

14 years agoFixed &nbsp characters MDL-7179
moodler [Mon, 23 Oct 2006 13:42:23 +0000 (13:42 +0000)]
Fixed &nbsp characters MDL-7179

14 years agoMerged fix for letting guests see discussion post button from stable
moodler [Mon, 23 Oct 2006 13:23:16 +0000 (13:23 +0000)]
Merged fix for letting guests see discussion post button from stable

14 years agoCheckbox value not saved when saving changes from admin search page MDL-7177 + other...
skodak [Mon, 23 Oct 2006 12:05:33 +0000 (12:05 +0000)]
Checkbox value not saved when saving changes from admin search page MDL-7177 + other fixes to make it behave more like settings.php; merged from MOODLE_17_STABLE

14 years agoyet another context fix for Roles tab - I hope this one is final; merged from MOODLE_...
skodak [Mon, 23 Oct 2006 11:27:31 +0000 (11:27 +0000)]
yet another context fix for Roles tab - I hope this one is final; merged from MOODLE_17_STABLE

14 years agoglossary tabs (when updating a glossary) is not aligned properly MDL-7172 ; merged...
skodak [Mon, 23 Oct 2006 11:17:56 +0000 (11:17 +0000)]
glossary tabs (when updating a glossary) is not aligned properly MDL-7172 ; merged from MOODLE_17_STABLE

14 years agoStylistic problem solved
andreabix [Mon, 23 Oct 2006 08:00:13 +0000 (08:00 +0000)]
Stylistic problem solved

14 years agoMerged tidy-ups from stable
moodler [Mon, 23 Oct 2006 07:46:57 +0000 (07:46 +0000)]
Merged tidy-ups from stable

14 years agostrip "old" harcoded "limit" clauses from the sql passed and
stronk7 [Mon, 23 Oct 2006 07:46:10 +0000 (07:46 +0000)]
strip "old" harcoded "limit" clauses from the sql passed and
debug about them. MDL-7173

Merged from MOODLE_17_STABLE

14 years agoMerged choice fixes from stable
moodler [Mon, 23 Oct 2006 07:01:18 +0000 (07:01 +0000)]
Merged choice fixes from stable

14 years agoMerged guest key enrolment fix from stable MDL-6881
moodler [Mon, 23 Oct 2006 06:38:15 +0000 (06:38 +0000)]
Merged guest key enrolment fix from stable  MDL-6881

14 years agoMerged stats fix for MDL-7151 from stable
moodler [Mon, 23 Oct 2006 05:22:16 +0000 (05:22 +0000)]
Merged stats fix for MDL-7151 from stable

14 years agoBetter handling for guest in forums MDL-7125
moodler [Mon, 23 Oct 2006 04:55:20 +0000 (04:55 +0000)]
Better handling for guest in forums  MDL-7125

14 years agoMerged capability name fix from stable
moodler [Mon, 23 Oct 2006 03:29:54 +0000 (03:29 +0000)]
Merged capability name fix from stable

14 years agomerged replacing studentcanpost with proper capability
toyomoyo [Mon, 23 Oct 2006 03:23:09 +0000 (03:23 +0000)]
merged replacing studentcanpost with proper capability

14 years agoMerged unenrol fixes from stable MDL-6964 MDL-7123
moodler [Mon, 23 Oct 2006 03:12:37 +0000 (03:12 +0000)]
Merged unenrol fixes from stable   MDL-6964   MDL-7123

14 years agoMerged choice/guest fixes from stable MDL-7171
moodler [Mon, 23 Oct 2006 03:00:30 +0000 (03:00 +0000)]
Merged choice/guest fixes from stable     MDL-7171

14 years agoAutomatic installer.php lang files by installer_builder (20061023)
moodler [Mon, 23 Oct 2006 02:58:41 +0000 (02:58 +0000)]
installer.php lang files by installer_builder (20061023)

14 years agomerged replacing studentcanpost with capability
toyomoyo [Mon, 23 Oct 2006 02:49:05 +0000 (02:49 +0000)]
merged replacing studentcanpost with capability

14 years agomerged, student_can_post should be done properly using capabilities
toyomoyo [Mon, 23 Oct 2006 02:25:32 +0000 (02:25 +0000)]
merged, student_can_post should be done properly using capabilities

14 years agoPrevent MSSQL to return from insert_record() before
stronk7 [Mon, 23 Oct 2006 00:01:57 +0000 (00:01 +0000)]
Prevent MSSQL to return from insert_record() before
trying to execute the updating of LOBs.

Merged from MOODLE_17_STABLE

14 years agoDebugging sql_paging_limit() as deprecated and
stronk7 [Sun, 22 Oct 2006 23:21:59 +0000 (23:21 +0000)]
Debugging sql_paging_limit() as deprecated and
enforcing get_field_sql() to return 1 record max

Merged from MOODLE_17_STABLE

14 years agoKilling all sql_paging_limit() uses
stronk7 [Sun, 22 Oct 2006 22:58:29 +0000 (22:58 +0000)]
Killing all sql_paging_limit() uses

Merged from MOODLE_17_STABLE

14 years agoKilling all sql_paging_limit() uses
stronk7 [Sun, 22 Oct 2006 22:49:54 +0000 (22:49 +0000)]
Killing all sql_paging_limit() uses

Merged from MOODLE_17_STABLE

14 years agoAdding limitfrom and limitnum parameters to a bunch of
stronk7 [Sun, 22 Oct 2006 22:37:30 +0000 (22:37 +0000)]
Adding limitfrom and limitnum parameters to a bunch of
rarely executed functions...

Merged from MOODLE_17_STABLE

14 years agofixed incorrect context in user Outline report; mergedf rom MOODLE_17_STABLE
skodak [Sun, 22 Oct 2006 20:03:01 +0000 (20:03 +0000)]
fixed incorrect context in user Outline report; mergedf rom MOODLE_17_STABLE

14 years agofixed $usercontext creation needed for Role tab when viewing user data; merged from...
skodak [Sun, 22 Oct 2006 19:59:07 +0000 (19:59 +0000)]
fixed $usercontext creation needed for Role tab when viewing user data; merged from MOODLE_17_STABLE

14 years agofixed sql error when searching only by one letter and two radio buttons selected...
skodak [Sun, 22 Oct 2006 19:42:27 +0000 (19:42 +0000)]
fixed sql error when searching only by one letter and two radio buttons selected at the same time (visible in Konqueror) fixed as part of MDL-7160 ; merged from MOODLE_17_STABLE

14 years agofixed moodle/site:readallmessages MDL-7160 ; commented out unfinished buggy code...
skodak [Sun, 22 Oct 2006 19:20:02 +0000 (19:20 +0000)]
fixed moodle/site:readallmessages MDL-7160 ; commented out unfinished buggy code; merged from MOODLE_17_STABLE

14 years agoMerged lastcourseaccess fixes from MDL-7134
moodler [Sun, 22 Oct 2006 08:31:06 +0000 (08:31 +0000)]
Merged lastcourseaccess fixes from MDL-7134

14 years agoMerged missing </span> from stable
moodler [Sun, 22 Oct 2006 08:25:51 +0000 (08:25 +0000)]
Merged missing </span> from stable

14 years agoMerged some fixes for & in XHTML
moodler [Sun, 22 Oct 2006 08:19:41 +0000 (08:19 +0000)]
Merged some fixes for & in XHTML

14 years agoMerged XHTML fixes from stable
moodler [Sun, 22 Oct 2006 08:14:20 +0000 (08:14 +0000)]
Merged XHTML fixes from stable

14 years agoMerged filter fix from stable
moodler [Sun, 22 Oct 2006 08:13:03 +0000 (08:13 +0000)]
Merged filter fix from stable

14 years agoMerged fixes for recent activity from stable MDL-7134
moodler [Sun, 22 Oct 2006 07:42:04 +0000 (07:42 +0000)]
Merged fixes for recent activity from stable  MDL-7134

14 years agoAutomatic installer.php lang files by installer_builder (20061022)
moodler [Sun, 22 Oct 2006 03:06:21 +0000 (03:06 +0000)]
installer.php lang files by installer_builder (20061022)

14 years agoSeeing ####TRUSTTEXT#### in RSS feeds MDL-7147 - fixed RSS feeds in glossary; merged...
skodak [Sat, 21 Oct 2006 21:15:26 +0000 (21:15 +0000)]
Seeing ####TRUSTTEXT#### in RSS feeds MDL-7147 - fixed RSS feeds in glossary; merged from MOODLE_17_STABLE

14 years agoSeeing ####TRUSTTEXT#### in RSS feeds MDL-7147 - fixed RSS discussion feed type too...
skodak [Sat, 21 Oct 2006 21:05:44 +0000 (21:05 +0000)]
Seeing ####TRUSTTEXT#### in RSS feeds MDL-7147 - fixed RSS discussion feed type too; merged from MOODLE_17_STABLE

14 years agofix has_capability() to work when $nomoodlecookie = true; MDL-7156 - needed for RSS...
skodak [Sat, 21 Oct 2006 20:42:50 +0000 (20:42 +0000)]
fix has_capability() to work when $nomoodlecookie = true; MDL-7156 - needed for RSS file.php that is serving feeds; merged from MOODLE_17_STABLE

14 years agofixed undefined modcontext in forum; merged from MOODLE_17_STABLE
skodak [Sat, 21 Oct 2006 20:30:27 +0000 (20:30 +0000)]
fixed undefined modcontext in forum; merged from MOODLE_17_STABLE

14 years agoDeleting some old oci8po files from CVS.
stronk7 [Sat, 21 Oct 2006 18:28:28 +0000 (18:28 +0000)]
Deleting some old oci8po files from CVS.

14 years agoPrevent add_field() to work if we are adding one not null field
stronk7 [Sat, 21 Oct 2006 18:19:47 +0000 (18:19 +0000)]
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

14 years agoAdded two more tests:
stronk7 [Sat, 21 Oct 2006 17:25:44 +0000 (17:25 +0000)]
Added two more tests:

- To check adding numerial fields not null + default = 0
- To test set_field() with TEXT data

Merged from MOODLE_17_STABLE

14 years agoMinor typo fixed.
stronk7 [Sat, 21 Oct 2006 17:19:37 +0000 (17:19 +0000)]
Minor typo fixed.

Merged from MOODLE_17_STABLE

14 years agoMerged My Courses fixes from stable
moodler [Sat, 21 Oct 2006 16:36:31 +0000 (16:36 +0000)]
Merged My Courses fixes from stable

14 years agoOne typo (!==) was preventing defaults to be properly calculated for integers.
stronk7 [Sat, 21 Oct 2006 16:36:16 +0000 (16:36 +0000)]
One typo (!==) was preventing defaults to be properly calculated for integers.
Thanks to Nigel McNie for being on that!

Merged from MOODLE_17_STABLE

14 years agoMake sure LAMS is off if we don't need it (merged from stable)
moodler [Sat, 21 Oct 2006 16:14:27 +0000 (16:14 +0000)]
Make sure LAMS is off if we don't need it (merged from stable)

14 years agoMerged fix for notice from stable
moodler [Sat, 21 Oct 2006 16:00:43 +0000 (16:00 +0000)]
Merged fix for notice from stable

14 years agoMerged some checks from stable
moodler [Sat, 21 Oct 2006 14:53:47 +0000 (14:53 +0000)]
Merged some checks from stable

14 years agoAutomatic installer.php lang files by installer_builder (20061021)
moodler [Sat, 21 Oct 2006 02:58:55 +0000 (02:58 +0000)]
installer.php lang files by installer_builder (20061021)

14 years agoMerged enrolment-related fixes from stable
moodler [Fri, 20 Oct 2006 17:53:50 +0000 (17:53 +0000)]
Merged enrolment-related fixes from stable

14 years agoHIde admins from partipant listings in courses
moodler [Fri, 20 Oct 2006 08:27:35 +0000 (08:27 +0000)]
HIde admins from partipant listings in courses

14 years agomerged fix for MDL-7119, users with no capability should not see roles tab
toyomoyo [Fri, 20 Oct 2006 08:09:53 +0000 (08:09 +0000)]
merged fix for MDL-7119, users with no capability should not see roles tab

14 years agoAdded Javascript, CSS etc on edit page for database. MDL-7100
moodler [Fri, 20 Oct 2006 07:35:00 +0000 (07:35 +0000)]
Added Javascript, CSS etc on edit page for database.   MDL-7100

14 years agomerged fix for MDL-7106, glossary capability check
toyomoyo [Fri, 20 Oct 2006 07:01:51 +0000 (07:01 +0000)]
merged fix for MDL-7106, glossary capability check

14 years agoMERGED:
moodler [Fri, 20 Oct 2006 06:59:24 +0000 (06:59 +0000)]
MERGED:

Changed default capability for database to allow guests to view by default
MDL-7118

14 years agoNew automatic installer lang file added
moodler [Fri, 20 Oct 2006 06:52:11 +0000 (06:52 +0000)]
New automatic installer lang file added

14 years agoMerged fixes for MDL-7116 from stable
moodler [Fri, 20 Oct 2006 06:19:22 +0000 (06:19 +0000)]
Merged fixes for MDL-7116 from stable

14 years agomerged fix for MDL-7115, teacher page replaced by generic role assign page
toyomoyo [Fri, 20 Oct 2006 05:49:05 +0000 (05:49 +0000)]
merged fix for MDL-7115, teacher page replaced by generic role assign page

14 years agoMerged sitecontext fix from stable
moodler [Fri, 20 Oct 2006 05:18:24 +0000 (05:18 +0000)]
Merged sitecontext fix from stable

14 years agoMerged fixes for guest display from stable
moodler [Fri, 20 Oct 2006 05:16:12 +0000 (05:16 +0000)]
Merged fixes for guest display from stable

14 years agomerged, fixed an infinite loop
toyomoyo [Fri, 20 Oct 2006 05:09:37 +0000 (05:09 +0000)]
merged, fixed an infinite loop

14 years agoMerged fix from stable (forum search form help button)
moodler [Fri, 20 Oct 2006 03:35:29 +0000 (03:35 +0000)]
Merged fix from stable (forum search form help button)

14 years agoMerged from 1.7
vyshane [Fri, 20 Oct 2006 03:18:06 +0000 (03:18 +0000)]
Merged from 1.7

14 years agomerged fix for MDL-7107, missing capability check for assignroles link
toyomoyo [Fri, 20 Oct 2006 03:16:07 +0000 (03:16 +0000)]
merged fix for MDL-7107, missing capability check for assignroles link

14 years agoAutomatic installer.php lang files by installer_builder (20061020)
moodler [Fri, 20 Oct 2006 03:00:41 +0000 (03:00 +0000)]
installer.php lang files by installer_builder (20061020)

14 years agomerged fox for MDL-7113, removing DISTINCT on TEXT field
toyomoyo [Fri, 20 Oct 2006 02:44:22 +0000 (02:44 +0000)]
merged fox for MDL-7113, removing DISTINCT on TEXT field

14 years agomerged, setting $CFG->unicodedb after converting db to unicode. Chaning the order...
toyomoyo [Fri, 20 Oct 2006 02:08:21 +0000 (02:08 +0000)]
merged, setting $CFG->unicodedb after converting db to unicode. Chaning the order of if clause to same some sqls

14 years agoerror reporting for xmldb (credit: Nigel McNie <nigel@catalyst.net.nz>)
mjollnir_ [Thu, 19 Oct 2006 23:30:28 +0000 (23:30 +0000)]
error reporting for xmldb (credit: Nigel McNie <nigel@catalyst.net.nz>)

14 years agotemporary patch for the forum trouble that is breaking installs MDL-7114 ; merged...
skodak [Thu, 19 Oct 2006 22:44:00 +0000 (22:44 +0000)]
temporary patch for the forum trouble that is breaking installs MDL-7114 ; merged from MOODLE_17_STABLE

14 years agofixed rolesactive notice during installation; merged from MOODLE_17_STABLE
skodak [Thu, 19 Oct 2006 22:18:22 +0000 (22:18 +0000)]
fixed rolesactive notice during installation; merged from MOODLE_17_STABLE

14 years agoAdding support for the new mssql_n driver
stronk7 [Thu, 19 Oct 2006 22:13:53 +0000 (22:13 +0000)]
Adding support for the new mssql_n driver

Merged from MOODLE_17_STABLE

14 years agoInternal zipping broken on win32 MDL-7105 ; we are now using the new method to specif...
skodak [Thu, 19 Oct 2006 22:13:03 +0000 (22:13 +0000)]
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

14 years agoAdding support for the new mssql_n driver
stronk7 [Thu, 19 Oct 2006 22:07:21 +0000 (22:07 +0000)]
Adding support for the new mssql_n driver

Merged from MOODLE_17_STABLE

14 years agoNew ADOdb driver that extends the standard mssql one. All it does is
stronk7 [Thu, 19 Oct 2006 21:57:23 +0000 (21:57 +0000)]
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

14 years agoAdding support for the new mssql_n driver
stronk7 [Thu, 19 Oct 2006 19:01:02 +0000 (19:01 +0000)]
Adding support for the new mssql_n driver

Two new strings added: mssql_n, databasesettingssub_mssql_n
One string modified: databasesettingssub_mssql

Merged from MOODLE_17_STABLE

14 years agoAdding support for the new mssql_n driver
stronk7 [Thu, 19 Oct 2006 18:45:16 +0000 (18:45 +0000)]
Adding support for the new mssql_n driver

Merged from MOODLE_17_STABLE

14 years agoAdding support for the new mssql_n driver
stronk7 [Thu, 19 Oct 2006 18:29:47 +0000 (18:29 +0000)]
Adding support for the new mssql_n driver

Merged from MOODLE_17_STABLE

14 years agoAddding support for the new mssql_n ADOdb driver that,
stronk7 [Thu, 19 Oct 2006 17:29:37 +0000 (17:29 +0000)]
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