24566 Commits

Author SHA1 Message Date
martinlanghoff
c9fa3eee9b get_config() callers in new MNET code switched to expect a single value returned
Again, this simplifies the logic in a few places.
2007-01-16 23:27:41 +00:00
martinlanghoff
1fd471a1c1 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.
2007-01-16 23:27:14 +00:00
martinlanghoff
9220fba598 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.
2007-01-16 23:25:19 +00:00
donal72
0d0f67f353 Mnet: The tokenizer extension is now optional. MDL-8136 2007-01-16 22:53:11 +00:00
donal72
afbedfb8d8 Mnet: Bugfix: Faulty logic - if the user has no local courses, we didn't bother to check for remote courses. 2007-01-16 22:52:24 +00:00
mchurch
7c4b621a20 Fixing bug where quizzes from 1.4 will lose their answers when upgraded to later versions.
Fixes MDL-8207.
2007-01-16 22:02:07 +00:00
tjhunt
ab6803a97c missed defaults_reprocessing to data_preprocessing 2007-01-16 18:01:02 +00:00
tjhunt
f38ceee677 Fix multiple-choice multiple-answer grading code. Merged from MOODLE_17_STABLE. 2007-01-16 17:51:05 +00:00
stronk7
b6fd063054 Fixed typo causing mysql fail on install without prefix. MDL-8203 2007-01-16 17:41:58 +00:00
jamiesensei
a7f7e52fc5 changed name of moodleform_mod method 'defaults_preprocessing' to 'data_preprocessing' in line with change of set_defaults name to set_data. 2007-01-16 15:36:33 +00:00
bobopinna
5297c819c4 modified dirname call to scorm_dirname that works also with URLs 2007-01-16 14:08:22 +00:00
bobopinna
2347a35113 added scorm 2004 sequencing/navigation support 2007-01-16 14:05:52 +00:00
bobopinna
10fd330f38 new sequencing engine 2007-01-16 14:03:15 +00:00
bobopinna
667a21664a fixed some typos. removed all tabs 2007-01-16 14:01:41 +00:00
nfreear
0e2d02b506 Fixes bug MDL-8045, "Some strings are missing on the grouping interface". 2007-01-16 13:29:44 +00:00
bobopinna
76659ac98f moved in locallib.php as a function 2007-01-16 13:23:07 +00:00
bobopinna
76ea4fb419 Moved validation.php in locallib.php as a function. Now is called by lib.php add/updateinstance() 2007-01-16 13:21:19 +00:00
bobopinna
a4813c36c8 The new edit page using QuickForm lib 2007-01-16 13:18:41 +00:00
bobopinna
a6f505ff4a substitute by the new mod_form.php 2007-01-16 13:16:34 +00:00
thepurpleblob
5bed54e1fc MDL-8100, defaultgrade not imported. Question obect initialisation and value import wrong way round - whoops! 2007-01-16 12:12:26 +00:00
thepurpleblob
2e15284e31 MDL-8130 Number of improvements to check name length and improve HTML Entity handling. Thanks to Paul Ortman. 2007-01-16 11:23:32 +00:00
skodak
91866a2631 some minor user edit fixes MDL-8096 2007-01-16 09:56:15 +00:00
skodak
6647e04ac9 MDL-8110 use standard _FILE_ for includes instead of path starting with dot 2007-01-16 08:56:36 +00:00
martinlanghoff
0f02788f70 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 ;-)
2007-01-16 05:24:20 +00:00
donal72
4d8c087e02 MNET: MyCourses block enriched with links to remote Moodles when roaming 2007-01-16 05:00:18 +00:00
martinlanghoff
43f853c908 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.
2007-01-16 03:28:57 +00:00
moodler
5d9bc144f3 Automatic installer.php lang files by installer_builder (20070116) 2007-01-16 03:13:08 +00:00
martinlanghoff
c0543ba1f7 mnet: backup_general_info() now indicates whether it includes MNET_REMOTEUSERS 2007-01-16 02:52:51 +00:00
vyshane
818c1b0592 Merged from 1.7. 2007-01-16 02:44:13 +00:00
martinlanghoff
54359be4c9 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.
2007-01-16 02:27:36 +00:00
martinlanghoff
dd3638e47e XHTML Strrrickt: fixed a problem with a UL and LI tag mix up during restores. 2007-01-16 01:06:11 +00:00
martinlanghoff
da586c3778 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.
2007-01-16 00:56:15 +00:00
donal72
492d44e4f7 Mnet: Show that a key has expired. 2007-01-15 22:00:28 +00:00
skodak
5577ceb354 xhtml fixing in logs and reports, code cleanup MDL-8187 2007-01-15 21:28:25 +00:00
martinlanghoff
d256515fba enrol/database: fix fields not read from external database MDL-7712 2007-01-15 19:57:12 +00:00
martinlanghoff
de6e7ee2a9 auth/db: fix fields not read from external database MDL-7712 2007-01-15 19:53:26 +00:00
skodak
acdd790f74 print_footer('none') during install and upgrade to hide home link and xhtml strict fixes 2007-01-15 19:16:29 +00:00
sam_marshall
ca360e834b MDL-8185: Added an extra \n to use_html_editor to make it happy in wiki editing (doesn't do any harm elsewhere) 2007-01-15 17:45:47 +00:00
sam_marshall
2cf02a3935 MDL-8185: Changed wiki html tag balancer to leave CDATA sections alone 2007-01-15 17:42:06 +00:00
mudrd8mz
de4214a592 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.
2007-01-15 11:40:26 +00:00
mudrd8mz
f024bea279 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.
2007-01-15 11:18:26 +00:00
jamiesensei
fa3bf11d02 removed print_object that got left in here 2007-01-15 10:39:43 +00:00
donal72
fc7900e75e MNet: Display expiry date of local certificate 2007-01-15 09:14:41 +00:00
donal72
9dd0e6115d Mnet: Key rotation: A more robust changeover for fresh keys 2007-01-15 09:03:39 +00:00
donal72
82b29ea15a Mnet: Stylefix: Array was returned with unusual numeric index 2007-01-15 09:00:39 +00:00
donal72
151a987289 Mnet: Refactor: Split up mnet_server_fault function so we have option to send non-lang-file errors 2007-01-15 08:40:24 +00:00
donal72
85d2d959d5 Mnet: Bugfix: Prevent infinite loop when 2 community hubs peer for the first time 2007-01-15 08:31:58 +00:00
donal72
e931feddaf Mnet: Bugfix: Prevent a second record to be created for an existing host if the user entered http://example.com/ as the wwwroot 2007-01-15 08:26:56 +00:00
donal72
ca1131e2ea Mnet: Drop deprecated interface to mnet_get_public_key function 2007-01-15 08:20:10 +00:00
vyshane
68febe8361 Fixes for MDL-7861. 2007-01-15 08:15:04 +00:00