moodle.git
14 years agoAdded some strings related to the update of the external packages timing
csantossaenz [Thu, 18 Jan 2007 11:58:08 +0000 (11:58 +0000)]
Added some strings related to the update of the external packages timing

14 years agosome more small changes to datasetdependent and calculated question type forms
jamiesensei [Thu, 18 Jan 2007 11:21:10 +0000 (11:21 +0000)]
some more small changes to datasetdependent and calculated question type forms

14 years agomigrated 'missingtype' questoin creation forms to use formslib
jamiesensei [Thu, 18 Jan 2007 10:22:56 +0000 (10:22 +0000)]
migrated 'missingtype' questoin creation forms to use formslib

14 years agoFix for MDL-8175 (void summary)
moodler [Thu, 18 Jan 2007 09:52:04 +0000 (09:52 +0000)]
Fix for MDL-8175  (void summary)

14 years agoAdded label to language menu for accessibility MDL-8174
moodler [Thu, 18 Jan 2007 09:45:02 +0000 (09:45 +0000)]
Added label to language menu for accessibility   MDL-8174

14 years agoAdded label to language menu for accessibility MDL-8174
moodler [Thu, 18 Jan 2007 09:42:29 +0000 (09:42 +0000)]
Added label to language menu for accessibility    MDL-8174

14 years agomnet: fixup remote enrolment handling pages - WIP
martinlanghoff [Thu, 18 Jan 2007 04:48:35 +0000 (04:48 +0000)]
mnet: fixup remote enrolment handling pages - WIP

14 years agomnet: clear out debug msg
martinlanghoff [Thu, 18 Jan 2007 04:39:41 +0000 (04:39 +0000)]
mnet: clear out debug msg

14 years agomnet: check for the _right_ varname before warning about mnet being off
martinlanghoff [Thu, 18 Jan 2007 03:16:55 +0000 (03:16 +0000)]
mnet: check for the _right_ varname before warning about mnet being off

14 years agoenrol/mnet: list_remote_servers() must always return an array
martinlanghoff [Thu, 18 Jan 2007 03:16:09 +0000 (03:16 +0000)]
enrol/mnet: list_remote_servers() must always return an array

14 years agomnet: try to stop trailing slashes in urls from getting through, better error msg...
martinlanghoff [Thu, 18 Jan 2007 02:56:06 +0000 (02:56 +0000)]
mnet: try to stop trailing slashes in urls from getting through, better error msg if we dont like the SSL cert

14 years agomnet: clean_param() fixed a leftover debugging statement - x2
martinlanghoff [Thu, 18 Jan 2007 02:31:42 +0000 (02:31 +0000)]
mnet: clean_param() fixed a leftover debugging statement - x2

14 years agomnet: clean_param() fixed a leftover debugging statement
martinlanghoff [Thu, 18 Jan 2007 02:22:35 +0000 (02:22 +0000)]
mnet: clean_param() fixed a leftover debugging statement

14 years agomnet: moving remote enrolment config to admin/mnet
martinlanghoff [Wed, 17 Jan 2007 23:49:04 +0000 (23:49 +0000)]
mnet: moving remote enrolment config to admin/mnet

14 years agoenrol/mnet: fix a warning, do not list the sitecourse
martinlanghoff [Wed, 17 Jan 2007 23:12:15 +0000 (23:12 +0000)]
enrol/mnet: fix a warning, do not list the sitecourse

14 years agoMnet: enrol/mnet: Return enrol plugin type with list of enrolled users
donal72 [Wed, 17 Jan 2007 23:03:18 +0000 (23:03 +0000)]
Mnet:  enrol/mnet:  Return enrol plugin type with list of enrolled users

14 years agomnet: better descriptions and warnings in admin pages
martinlanghoff [Wed, 17 Jan 2007 22:23:56 +0000 (22:23 +0000)]
mnet: better descriptions and warnings in admin pages

14 years agoMDL-5690 text format in text type resource is now stored in reference field
skodak [Wed, 17 Jan 2007 20:41:19 +0000 (20:41 +0000)]
MDL-5690 text format in text type resource is now stored in reference field

14 years agoforce login in course calendar SC#349
skodak [Wed, 17 Jan 2007 19:53:03 +0000 (19:53 +0000)]
force login in course calendar SC#349

14 years agomore work on the datasetdependent / calculated question creation forms
jamiesensei [Wed, 17 Jan 2007 18:28:51 +0000 (18:28 +0000)]
more work on the datasetdependent / calculated question creation forms

14 years agoMinor problem with restoring numerical questions.
tjhunt [Wed, 17 Jan 2007 17:29:08 +0000 (17:29 +0000)]
Minor problem with restoring numerical questions.

14 years agoFixes Bug MDL-8200, "Group admin interface shows all groups sitewide!"
nfreear [Wed, 17 Jan 2007 16:13:21 +0000 (16:13 +0000)]
Fixes Bug MDL-8200, "Group admin interface shows all groups sitewide!"

14 years agoModified scorm module to allow remote packages updating
csantossaenz [Wed, 17 Jan 2007 15:53:06 +0000 (15:53 +0000)]
Modified scorm module to allow remote packages updating

14 years agoAdded a field to scorm table to store the ckecksum of a remote package
csantossaenz [Wed, 17 Jan 2007 15:38:40 +0000 (15:38 +0000)]
Added a field to scorm table to store the ckecksum of a remote package

14 years agoadded a field to store ckecksum of a remote package
csantossaenz [Wed, 17 Jan 2007 15:31:40 +0000 (15:31 +0000)]
added a field to store ckecksum of a remote package

14 years agoThe way mulit-response questoins show the right answer is a bit confusing.
tjhunt [Wed, 17 Jan 2007 14:54:55 +0000 (14:54 +0000)]
The way mulit-response questoins show the right answer is a bit confusing.

14 years agoPrevent unnecessary scroll to warning message during local version installation/upgra...
dwoolhead [Wed, 17 Jan 2007 14:38:56 +0000 (14:38 +0000)]
Prevent unnecessary scroll to warning message during local version installation/upgrade due to missing notification type on success

14 years agoMissing groups version message (noted during clean installation) added
dwoolhead [Wed, 17 Jan 2007 14:35:55 +0000 (14:35 +0000)]
Missing groups version message (noted during clean installation) added

14 years agoPartial fix for MDL-8048, undid bug introduced last commit.
nfreear [Wed, 17 Jan 2007 14:33:29 +0000 (14:33 +0000)]
Partial fix for MDL-8048, undid bug introduced last commit.

14 years agoMnet: In auth config, show which hosts have mnet/auth configured
donal72 [Wed, 17 Jan 2007 14:13:19 +0000 (14:13 +0000)]
Mnet:  In auth config, show which hosts have mnet/auth configured

14 years agoPartial fix for MDL-8048, groups cleanup including hiding unimplemented buttons in...
nfreear [Wed, 17 Jan 2007 13:56:09 +0000 (13:56 +0000)]
Partial fix for MDL-8048, groups cleanup including hiding unimplemented buttons in GUI, fixing error strings.

14 years agoMnet: Show non-mnet enrolments in the mnet/enrolment page
donal72 [Wed, 17 Jan 2007 12:12:11 +0000 (12:12 +0000)]
Mnet:  Show non-mnet enrolments in the mnet/enrolment page

14 years agoMatching question rigth/wrong answer indication is broken.
tjhunt [Wed, 17 Jan 2007 10:31:36 +0000 (10:31 +0000)]
Matching question rigth/wrong answer indication is broken.

14 years agoget_config(): fix a call using the oldstyle return value
martinlanghoff [Wed, 17 Jan 2007 06:13:09 +0000 (06:13 +0000)]
get_config(): fix a call using the oldstyle return value

14 years agoMnet: Minor oops - a variable in the last commit was not renamed
donal72 [Wed, 17 Jan 2007 03:56:31 +0000 (03:56 +0000)]
Mnet:  Minor oops - a variable in the last commit was not renamed

14 years agoAutomatic installer.php lang files by installer_builder (20070117)
moodler [Wed, 17 Jan 2007 03:14:37 +0000 (03:14 +0000)]
installer.php lang files by installer_builder (20070117)

14 years agomnet: restore_create_users() fixed mnethost lookup
martinlanghoff [Wed, 17 Jan 2007 01:00:08 +0000 (01:00 +0000)]
mnet: restore_create_users() fixed mnethost lookup

Credit goes to Eloy for catching my error.

14 years agoMDL-8204 several installer improvements:
skodak [Tue, 16 Jan 2007 23:42:26 +0000 (23:42 +0000)]
MDL-8204 several installer improvements:
* dirroot can not be changed now to prevent future problems - because we rely on dirname(_FILE_) in several places already
* dirroot is now used to detect repeated installs into defferent directories in the same browser sessions
* fixed previous button
* changed library inlcudes again to fit the normal coding style

14 years agoget_config() callers in new MNET code switched to expect a single value returned
martinlanghoff [Tue, 16 Jan 2007 23:27:41 +0000 (23:27 +0000)]
get_config() callers in new MNET code switched to expect a single value returned
Again, this simplifies the logic in a few places.

14 years agoget_config() callers switched to expect a single value returned
martinlanghoff [Tue, 16 Jan 2007 23:27:14 +0000 (23:27 +0000)]
get_config() callers switched to expect a single value returned

This simplifies the logic in the callers -- a good hint that
that we are doing the right thing.

14 years agoget_config(): return a single value instead of a record when called with 2 params
martinlanghoff [Tue, 16 Jan 2007 23:25:19 +0000 (23:25 +0000)]
get_config(): return a single value instead of a record when called with 2 params

get_config() was meant to return a single value when called with 2 params,
however, it never did. Change it to Do The Right Thing, and audit all callers.

14 years agoMnet: The tokenizer extension is now optional. MDL-8136
donal72 [Tue, 16 Jan 2007 22:53:11 +0000 (22:53 +0000)]
Mnet:  The tokenizer extension is now optional.  MDL-8136

14 years agoMnet: Bugfix: Faulty logic - if the user has no local courses, we didn't bother...
donal72 [Tue, 16 Jan 2007 22:52:24 +0000 (22:52 +0000)]
Mnet:  Bugfix:  Faulty logic - if the user has no local courses, we didn't bother to check for remote courses.

14 years agoFixing bug where quizzes from 1.4 will lose their answers when upgraded to later...
mchurch [Tue, 16 Jan 2007 22:02:07 +0000 (22:02 +0000)]
Fixing bug where quizzes from 1.4 will lose their answers when upgraded to later versions.
Fixes MDL-8207.

14 years agomissed defaults_reprocessing to data_preprocessing
tjhunt [Tue, 16 Jan 2007 18:01:02 +0000 (18:01 +0000)]
missed defaults_reprocessing to data_preprocessing

14 years agoFix multiple-choice multiple-answer grading code. Merged from MOODLE_17_STABLE.
tjhunt [Tue, 16 Jan 2007 17:51:05 +0000 (17:51 +0000)]
Fix multiple-choice multiple-answer grading code. Merged from MOODLE_17_STABLE.

14 years agoFixed typo causing mysql fail on install without prefix. MDL-8203
stronk7 [Tue, 16 Jan 2007 17:41:58 +0000 (17:41 +0000)]
Fixed typo causing mysql fail on install without prefix. MDL-8203

14 years agochanged name of moodleform_mod method 'defaults_preprocessing' to 'data_preprocessing...
jamiesensei [Tue, 16 Jan 2007 15:36:33 +0000 (15:36 +0000)]
changed name of moodleform_mod method 'defaults_preprocessing' to 'data_preprocessing' in line with change of set_defaults name to set_data.

14 years agomodified dirname call to scorm_dirname that works also with URLs
bobopinna [Tue, 16 Jan 2007 14:08:22 +0000 (14:08 +0000)]
modified dirname call to scorm_dirname that works also with URLs

14 years agoadded scorm 2004 sequencing/navigation support
bobopinna [Tue, 16 Jan 2007 14:05:52 +0000 (14:05 +0000)]
added scorm 2004 sequencing/navigation support

14 years agonew sequencing engine
bobopinna [Tue, 16 Jan 2007 14:03:15 +0000 (14:03 +0000)]
new sequencing engine

14 years agofixed some typos. removed all tabs
bobopinna [Tue, 16 Jan 2007 14:01:41 +0000 (14:01 +0000)]
fixed some typos. removed all tabs

14 years agoFixes bug MDL-8045, "Some strings are missing on the grouping interface".
nfreear [Tue, 16 Jan 2007 13:29:44 +0000 (13:29 +0000)]
Fixes bug MDL-8045, "Some strings are missing on the grouping interface".

14 years agomoved in locallib.php as a function
bobopinna [Tue, 16 Jan 2007 13:23:07 +0000 (13:23 +0000)]
moved in locallib.php as a function

14 years agoMoved validation.php in locallib.php as a function. Now is called by lib.php add...
bobopinna [Tue, 16 Jan 2007 13:21:19 +0000 (13:21 +0000)]
Moved validation.php in locallib.php as a function. Now is called by lib.php add/updateinstance()

14 years agoThe new edit page using QuickForm lib
bobopinna [Tue, 16 Jan 2007 13:18:41 +0000 (13:18 +0000)]
The new edit page using QuickForm lib

14 years agosubstitute by the new mod_form.php
bobopinna [Tue, 16 Jan 2007 13:16:34 +0000 (13:16 +0000)]
substitute by the new mod_form.php

14 years agoMDL-8100, defaultgrade not imported.\rQuestion obect initialisation and value import...
thepurpleblob [Tue, 16 Jan 2007 12:12:26 +0000 (12:12 +0000)]
MDL-8100, defaultgrade not imported.\rQuestion obect initialisation and value import wrong way round - whoops!

14 years agoMDL-8130 Number of improvements to check name length and improve HTML Entity handling...
thepurpleblob [Tue, 16 Jan 2007 11:23:32 +0000 (11:23 +0000)]
MDL-8130 Number of improvements to check name length and improve HTML Entity handling. Thanks to Paul Ortman.

14 years agosome minor user edit fixes MDL-8096
skodak [Tue, 16 Jan 2007 09:56:15 +0000 (09:56 +0000)]
some minor user edit fixes MDL-8096

14 years agoMDL-8110 use standard _FILE_ for includes instead of path starting with dot
skodak [Tue, 16 Jan 2007 08:56:36 +0000 (08:56 +0000)]
MDL-8110 use standard _FILE_ for includes instead of path starting with dot

14 years agoauth/db/auth.php - fewer queries against the ext db
martinlanghoff [Tue, 16 Jan 2007 05:24:20 +0000 (05:24 +0000)]
auth/db/auth.php - fewer queries against the ext db

Previously sync script would query the ext db once for each field that
might be wanted (repeated for each user).  Changed to query once for each
user.

Originally by Peter Bulmer <peter.bulmer@catalyst.net.net>
Somewhat adapted by Martin Langhoff ;-)

14 years agoMNET: MyCourses block enriched with links to remote Moodles when roaming
donal72 [Tue, 16 Jan 2007 05:00:18 +0000 (05:00 +0000)]
MNET:  MyCourses block enriched with links to remote Moodles when roaming

14 years agomnet: restore support - XML parser knows about MNET_EXTERNALUSERS, restore_check...
martinlanghoff [Tue, 16 Jan 2007 03:28:57 +0000 (03:28 +0000)]
mnet: restore support - XML parser knows about MNET_EXTERNALUSERS, restore_check.html warns

This may need to be reworked to move the warning to an earlier stage. In the
meantime, we have

 - at INFO parsing time we read MNET_EXTERNALUSERS into the backup info obj
 - at restore_check time, we warn the user that external users are in the
   package. If the situation looks dodgy, we say so. But don't block the
   user, as it may be a valid situation.

14 years agoAutomatic installer.php lang files by installer_builder (20070116)
moodler [Tue, 16 Jan 2007 03:13:08 +0000 (03:13 +0000)]
installer.php lang files by installer_builder (20070116)

14 years agomnet: backup_general_info() now indicates whether it includes MNET_REMOTEUSERS
martinlanghoff [Tue, 16 Jan 2007 02:52:51 +0000 (02:52 +0000)]
mnet: backup_general_info() now indicates whether it includes MNET_REMOTEUSERS

14 years agoMerged from 1.7.
vyshane [Tue, 16 Jan 2007 02:44:13 +0000 (02:44 +0000)]
Merged from 1.7.

14 years agomnet: backup_user_info() is faster, and it store mnethosturl for foreign users
martinlanghoff [Tue, 16 Jan 2007 02:27:36 +0000 (02:27 +0000)]
mnet: backup_user_info() is faster, and it store mnethosturl for foreign users

Several changes to backup_user_info() rolled up here

 - The main JOIN happens in SQL instead of PHP
 - We now also join with mnet_host to get the wwwroot
 - As part of the join, all the variables appear in $user -- $user_data is gone
 - If the mnethostid is non-local we include MNETHOSTURL for that user

With this, backup_user_info() should be significantly faster for large
sets of users, though I haven't benchmarked it.

14 years agoXHTML Strrrickt: fixed a problem with a UL and LI tag mix up during restores.
martinlanghoff [Tue, 16 Jan 2007 01:06:11 +0000 (01:06 +0000)]
XHTML Strrrickt: fixed a problem with a UL and LI tag mix up during restores.

14 years agomnet: restore_create_users() is now mnet-aware
martinlanghoff [Tue, 16 Jan 2007 00:56:15 +0000 (00:56 +0000)]
mnet: restore_create_users() is now mnet-aware

It will now default to $CFG->mnet_localhost_id and can
handle backup files containing an mnethosturl user property
which will be mapped to mnethostid.

Additional checks are needed to avoid restoring files
with mnethosturls we cannot handle.

14 years agoMnet: Show that a key has expired.
donal72 [Mon, 15 Jan 2007 22:00:28 +0000 (22:00 +0000)]
Mnet:  Show that a key has expired.

14 years agoxhtml fixing in logs and reports, code cleanup MDL-8187
skodak [Mon, 15 Jan 2007 21:28:25 +0000 (21:28 +0000)]
xhtml fixing in logs and reports, code cleanup MDL-8187

14 years agoenrol/database: fix fields not read from external database MDL-7712
martinlanghoff [Mon, 15 Jan 2007 19:57:12 +0000 (19:57 +0000)]
enrol/database: fix fields not read from external database MDL-7712

14 years agoauth/db: fix fields not read from external database MDL-7712
martinlanghoff [Mon, 15 Jan 2007 19:53:26 +0000 (19:53 +0000)]
auth/db: fix fields not read from external database MDL-7712

14 years agoprint_footer('none') during install and upgrade to hide home link and xhtml strict...
skodak [Mon, 15 Jan 2007 19:16:29 +0000 (19:16 +0000)]
print_footer('none') during install and upgrade to hide home link and xhtml strict fixes

14 years agoMDL-8185: Added an extra \n to use_html_editor to make it happy in wiki editing ...
sam_marshall [Mon, 15 Jan 2007 17:45:47 +0000 (17:45 +0000)]
MDL-8185: Added an extra \n to use_html_editor to make it happy in wiki editing (doesn't do any harm elsewhere)

14 years agoMDL-8185: Changed wiki html tag balancer to leave CDATA sections alone
sam_marshall [Mon, 15 Jan 2007 17:42:06 +0000 (17:42 +0000)]
MDL-8185: Changed wiki html tag balancer to leave CDATA sections alone

14 years agoThe script used to fwrite \?\> instead of ?>. Fixes MDL-8129.
mudrd8mz [Mon, 15 Jan 2007 11:40:26 +0000 (11:40 +0000)]
The script used to fwrite \?\> instead of ?>. Fixes MDL-8129.

This was introduced in 1.80 by moodler. Don't know why but it caused an PHP critical
syntax error.

14 years agoThe maximum length of the missing strings to display can be set now. Fixes MDL-8184.
mudrd8mz [Mon, 15 Jan 2007 11:18:26 +0000 (11:18 +0000)]
The maximum length of the missing strings to display can be set now. Fixes MDL-8184.

Because the tags <pre>...</pre> are used when displaying original English
version of missing texts, the screen may get very wide. This patch displays
only first 60 characters followed by '...'. This produces better output.

14 years agoremoved print_object that got left in here
jamiesensei [Mon, 15 Jan 2007 10:39:43 +0000 (10:39 +0000)]
removed print_object that got left in here

14 years agoMNet: Display expiry date of local certificate
donal72 [Mon, 15 Jan 2007 09:14:41 +0000 (09:14 +0000)]
MNet:  Display expiry date of local certificate

14 years agoMnet: Key rotation: A more robust changeover for fresh keys
donal72 [Mon, 15 Jan 2007 09:03:39 +0000 (09:03 +0000)]
Mnet:  Key rotation:  A more robust changeover for fresh keys

14 years agoMnet: Stylefix: Array was returned with unusual numeric index
donal72 [Mon, 15 Jan 2007 09:00:39 +0000 (09:00 +0000)]
Mnet:  Stylefix:  Array was returned with unusual numeric index

14 years agoMnet: Refactor: Split up mnet_server_fault function so we have option to send non...
donal72 [Mon, 15 Jan 2007 08:40:24 +0000 (08:40 +0000)]
Mnet:  Refactor:  Split up mnet_server_fault function so we have option to send non-lang-file errors

14 years agoMnet: Bugfix: Prevent infinite loop when 2 community hubs peer for the first time
donal72 [Mon, 15 Jan 2007 08:31:58 +0000 (08:31 +0000)]
Mnet:  Bugfix:  Prevent infinite loop when 2 community hubs peer for the first time

14 years agoMnet: Bugfix: Prevent a second record to be created for an existing host if the...
donal72 [Mon, 15 Jan 2007 08:26:56 +0000 (08:26 +0000)]
Mnet:  Bugfix:  Prevent a second record to be created for an existing host if the user entered example.com/ as the wwwroot

14 years agoMnet: Drop deprecated interface to mnet_get_public_key function
donal72 [Mon, 15 Jan 2007 08:20:10 +0000 (08:20 +0000)]
Mnet:  Drop deprecated interface to mnet_get_public_key function

14 years agoFixes for MDL-7861.
vyshane [Mon, 15 Jan 2007 08:15:04 +0000 (08:15 +0000)]
Fixes for MDL-7861.

14 years agoFixed text box display width.
vyshane [Mon, 15 Jan 2007 08:02:10 +0000 (08:02 +0000)]
Fixed text box display width.

14 years agoFixes for MDL-7861.
vyshane [Mon, 15 Jan 2007 07:59:28 +0000 (07:59 +0000)]
Fixes for MDL-7861.

14 years agoFixes for MDL-7861.
vyshane [Mon, 15 Jan 2007 07:29:25 +0000 (07:29 +0000)]
Fixes for MDL-7861.

14 years agoFixed up alignment of buttons on course page
moodler [Mon, 15 Jan 2007 03:39:48 +0000 (03:39 +0000)]
Fixed up alignment of buttons on course page

14 years agorcache: cleanup, upgrade path, config options (MDL-8163)
martinlanghoff [Sun, 14 Jan 2007 23:02:13 +0000 (23:02 +0000)]
rcache: cleanup, upgrade path, config options   (MDL-8163)

record cache and caching schemes get a little cleanup, faster
if()s and a nice set of config options. Users who've been using
the internal cache get a nice upgrade too.

14 years agoAvoiding some itarations. MDL-7902. Thanks Samuli!
stronk7 [Sun, 14 Jan 2007 12:11:33 +0000 (12:11 +0000)]
Avoiding some itarations. MDL-7902. Thanks Samuli!

Merged from MOODLE_17_STABLE

14 years agoNow the list of downloadable langs (when no fopen is available) doesn't break XML...
stronk7 [Sat, 13 Jan 2007 20:17:20 +0000 (20:17 +0000)]
Now the list of downloadable langs (when no fopen is available) doesn't break XML. Related to MDL-7861

14 years agoNow all the filters global config pages are valid XML. Related to MDL-7861
stronk7 [Sat, 13 Jan 2007 20:15:09 +0000 (20:15 +0000)]
Now all the filters global config pages are valid XML. Related to MDL-7861

14 years agoNow all the blocks global config pages are valid XML. Related to MDL-7861
stronk7 [Sat, 13 Jan 2007 20:14:40 +0000 (20:14 +0000)]
Now all the blocks global config pages are valid XML. Related to MDL-7861

14 years agoNow all the modules global config pages are valid XML. Related to MDL-7861
stronk7 [Sat, 13 Jan 2007 20:13:58 +0000 (20:13 +0000)]
Now all the modules global config pages are valid XML. Related to MDL-7861

14 years agoAdded some styles to display phpinfo properly.
stronk7 [Sat, 13 Jan 2007 20:12:32 +0000 (20:12 +0000)]
Added some styles to display phpinfo properly.

14 years agoNow frame-less phpinfo page is valid XML. Part of MDL-7861
stronk7 [Sat, 13 Jan 2007 20:11:31 +0000 (20:11 +0000)]
Now frame-less phpinfo page is valid XML. Part of MDL-7861