3038 Commits

Author SHA1 Message Date
tjhunt
5a14d563b9 Bug #5972 - Some question types mark a blank answer inconsistently.
Also, cleaned up the marking code for numerical and short answer questions, partly by making the base-class method more useful.

Rewrote the way the way short answer questions do wildcard matching to be more robust, Unicode safe, and generally not suck.

This is a big change, so I am pleased to report I tested it using my new Selinium  test suite. See: http://moodle.org/mod/forum/discuss.php?d=51161
2006-08-04 16:53:43 +00:00
skodak
df77b427d5 check_dir_exists() has new recursive parameter - it should help clean up the restore code a bit and could be handy elsewhere too; tested in both linux and windoze 2006-08-02 19:40:58 +00:00
skodak
9e72ebd678 improved redirect() - faster and more standards compliant 2006-08-01 18:02:42 +00:00
skodak
583fad994c Bug #5352 - upgrade might be interrupted by user - upgrades are now logged into moddata/upgradelogs/, user abor is ignored and concurrent running of upgrades is prevented from one browser 2006-08-01 07:46:19 +00:00
toyomoyo
0c23b59c9b merfed fix for 6178 2006-08-01 05:12:13 +00:00
skodak
889e6b46f4 Bug #6147 - Upgrade from 1.5.x breaks with Postgres 7.4.x
Even though Postgres 7.4.x is officially supported, several upgrade scripts use syntax that only works in Postgres 8.x. and it's impossible to finish the upgrade.

The attached patch fixes those scripts.

Saludos. I�aki.

Author: I�aki Arenaza
Review: Jun Yamog, Martin Langhoff

merged from MOODLE_16_STABLE
2006-07-31 18:04:10 +00:00
skodak
3ea3763a18 Bug #6146 - Smiley popup can not be translated; merged from MOODLE_16_STABLE 2006-07-31 10:28:12 +00:00
julmis
5113b779f6 First attempt to indentify special tags and nicely formatted output 2006-07-31 01:45:22 +00:00
julmis
bb9cd4503a Merging from stable 2006-07-30 23:24:43 +00:00
skodak
be933850a7 Bug #6176 - locale setting on config variables page not functioning correctly; merged from MOODLE_16_STABLE 2006-07-30 10:39:21 +00:00
skodak
f4f6599085 Bug #6183 - typo in clean_param() description; merged from MOODLE_16_STABLE 2006-07-28 20:57:19 +00:00
tjhunt
bdfad57b83 Added information to a comment. 2006-07-28 10:55:37 +00:00
tjhunt
9a1e5f0a5f Clarified unit test failure message. 2006-07-27 10:43:14 +00:00
skodak
250f78be94 Bug #6097 - HTML editor and brackets - fixes lesson problems; merged from MOODLE_16_STABLE 2006-07-20 06:32:38 +00:00
moodler
fa145ae1af Merged fixes from stable 2006-07-19 10:21:52 +00:00
skodak
ad0f9c828e Bug #6136 - Hard coded admin paths; merged from MOODLE_16_STABLE 2006-07-19 08:13:25 +00:00
stronk7
d272c2feb8 Fixing one recently added DB upgrade. Please be careful on STABLE!
Mimic from MOODLE_16_STABLE
2006-07-18 16:35:15 +00:00
tjhunt
d7444d442f Bug #6033 - missing string for unknown questiontype. Also tidied up some messy code. Merged from MOODLE_16_STABLE. 2006-07-18 15:34:24 +00:00
martinlanghoff
2338ad3239 Close Bug #5670 - get_courses_page() - remove costly and redundant DISTINCT
get_courses_page() uses get_records_sql() which means that it will actually
break if the first field requested isn't c.id. This in turn means that
the DISTINCT is not needed at all.

So let's go fast again!
2006-07-18 04:39:01 +00:00
tjhunt
062a7522c2 Bug 6111 - Rewrite the code for making an indented list of question categories, becase the existing code was so horrible. Merged from MOODLE_16_STABLE. 2006-07-14 15:36:29 +00:00
sam_marshall
44c55d4662 Added hooks so that blocks can create functions that are run when they are installed and uninstalled. The base implementation does nothing. 2006-07-14 11:17:46 +00:00
moodler
418b4e5a5f Merged new variable $CFG->allowvisiblecoursesinhiddencategories from stable 2006-07-13 14:18:29 +00:00
tjhunt
a36f058e53 Bug 6101 - Automatically scroll to any errors when upgrading the database. JavaScript thanks to Andrew Walker. PHP changes are my fault. 2006-07-13 09:48:56 +00:00
moodler
118917bf17 Checking YUI into Moodle for future AJAX work 2006-07-13 08:35:43 +00:00
skodak
18478666ca fixed printing of filenames from zip archives - SC#273; merged from MOODLE_16_STABLE 2006-07-12 05:57:28 +00:00
stronk7
1a9b9a0143 Emulate file_put_contents() under PHP 4.3.x 2006-07-11 17:42:21 +00:00
toyomoyo
2256c10d36 merged changing of feedback for the function that handles user table 2006-07-11 03:36:13 +00:00
tjhunt
ec23db087c Bug 6031 - missing parameter for warningmissingtype in libquestionlib.php. Merged from MOODLE_16_STABLE. 2006-07-06 11:09:24 +00:00
martinlanghoff
330b0bb2ad wiki: fix for IE6 bug with HTMLArea, where the text area is not drawn
IE6 measures a page element and - sometimes - it does this before the
element is drawn, so the dimensions it finds are zero. This update sets
sensible minimum for the width.

Author: Donal McMullan <donal@catalyst.net.nz>
2006-07-06 05:38:53 +00:00
sam_marshall
ba75ad9400 Minor changes to send_file():
* Wrote phpdoc comment that documents all parameters
* Added $mimetype param (default empty) that can be used if MIME type is already known and doesn't need guessing from filename
2006-07-05 11:10:37 +00:00
skodak
9bbb40d631 healthcenter fixes - new extra whitespace detection, fixed automatic slasharguments detection; merged from MOODLE_16_STABLE 2006-07-05 07:44:20 +00:00
toyomoyo
8ab2baa8f3 merged fix for a problem where globallang is not respected in user table 2006-07-05 01:55:29 +00:00
skodak
f262874bbe Bug #5909 - Fix use of user_group() because it returns arrays now - part 1; merged from MOODLE_16_STABLE 2006-07-03 21:11:17 +00:00
skodak
13d32e2297 Bug #5974 - Course overview report should not error when stats are not up to date; fixed by changing the return value from stats_check_uptodate(), NULL is now OK, string value describes error and adding notify() where needed; merged from MOODLE_16_STABLE 2006-07-03 15:43:41 +00:00
tjhunt
3ef8c9362d Bug #5979 - Check in the OU's unit testing framework. Docs at http://docs.moodle.org/en/Unit_tests 2006-06-30 14:59:05 +00:00
skodak
6544f8d896 slashargument fix for healthcenter, better diagnostic messages; renamed file.php/pic.jpg option to file.php/1/pic.jpg because the course number is mandatory; merged from MOODLE_16_STABLE 2006-06-30 13:46:25 +00:00
skodak
aba588a726 Bug #5802 - Incorrect length in http partial content (206) packets.; merged from MOODLE_16_STABLE 2006-06-30 07:23:08 +00:00
skodak
9c1cd39de5 Bug #5937 - Fix nonascii chars in graphs:
* text is converted to unicode - no html entities anymore
 * then all nonascii chars are converted to decimal number entites
 * default.ttf is searched in dataroot/lang and local language packs too
 * removed lang_decode() - obsoleded by proper entity converison above
 * updated documentation in lang/en_utf8/fonts/README.txt

merged from MOODLE_16_STABLE
2006-06-29 21:22:16 +00:00
tjhunt
82b5d7cd8e Bug #5922 - comment from manualgraded questions lost during regrade. Thanks to Jean-Michel Vedrine for the fix. Merged from MOODLE_16_STABLE. 2006-06-28 11:45:11 +00:00
tjhunt
5e60643e1b Bug 5889 - Regrading a quiz wipes student answers. Thanks to Jean-Michel Vedrine for the fix. Merged from MOODLE_16_STABLE. 2006-06-26 11:23:32 +00:00
toyomoyo
b7425e2ebc merged fix for 5916 2006-06-26 08:32:39 +00:00
skodak
77cf4951b7 fixed Turkish problems see, Bug #5878 - Teachers can't add blog and blocks; merged from MOODLE_16_STABLE 2006-06-26 07:23:10 +00:00
julmis
63183a0932 Commenting out ob_gzhandler
Merging from stable
2006-06-23 19:53:26 +00:00
danstowell
87075ec1cd Fixed typo which caused images in questions to fail to display if NOT using slasharguments 2006-06-23 15:06:23 +00:00
stronk7
7038fe44bf Now docs are showed in a new window based on $CFG->doctonewwindow
Merged from MOODLE_16_STABLE
2006-06-20 13:53:09 +00:00
stronk7
d3b9dbad78 Added new option to decide if docs will be showed in a new window.
Merged from MOODLE_16_STABLE
2006-06-20 13:41:56 +00:00
toyomoyo
08cf9e250d merged, changed copyright to &#169; to validate better 2006-06-19 03:53:26 +00:00
vyshane
68efe393f6 Merge from 1.6. New class FPDF_Protection. See bug #5855. 2006-06-19 02:41:44 +00:00
moodler
fb06b25570 Merged migration fixes from stable 2006-06-18 10:09:58 +00:00
moodler
a6320cc0b8 Merged helplink fix from stable 2006-06-18 08:10:52 +00:00