]> git.mjollnir.org Git - moodle.git/log
moodle.git
18 years agorcache_* calls - flesh out logic and use $MCACHE if available
martinlanghoff [Wed, 27 Dec 2006 22:40:38 +0000 (22:40 +0000)]
rcache_* calls - flesh out logic and use $MCACHE if available

 - move from $CFG->enablerecordcache <count> to $CFG->rcache <type>

 - if $CFG->rcache === 'internal' use the cache array
   otherwise, attempt to use $MCACHE

 - implement and use rcache_getforfill() to catch thundering herds

 - the cache lifetime is hardcoded to 2s until we understand better the
   possible race conditions against updates that are not happening via
   update_record() / delete_record()

18 years agoget_performance_info(): fixup rcache stats
martinlanghoff [Wed, 27 Dec 2006 22:40:16 +0000 (22:40 +0000)]
get_performance_info(): fixup rcache stats

0 cache misses is valid and probably a good score ;-)

18 years agodmllib: introducing the rcache_* functions for record cache handling
martinlanghoff [Wed, 27 Dec 2006 22:39:32 +0000 (22:39 +0000)]
dmllib: introducing the rcache_* functions for record cache handling

Abstracted Sam's initial work with $record_cache into a series of functions
that abstract things _just enough_ that we can use an internal
in-memory-array implementation or something that is shared across
processes, like memcached or the turckmmcache/eaccelerator caches.

Also
- added hit/miss stats tracking and reporting
- removed max entries limiting as it was buggy - var names mismatches
  and not counting unset()s

18 years agoMDL-7950 Display only new messages option and other minor changes in jsless messaging ui
skodak [Wed, 27 Dec 2006 16:06:17 +0000 (16:06 +0000)]
MDL-7950 Display only new messages option and other minor changes in jsless messaging ui

18 years agoredirect(): fix protocol name in redirection header()
martinlanghoff [Wed, 27 Dec 2006 01:49:14 +0000 (01:49 +0000)]
redirect(): fix protocol name in redirection header()

18 years agoraise_memory_limit() earlier -- resolves OOM on 64-bit platforms
martinlanghoff [Tue, 26 Dec 2006 22:48:36 +0000 (22:48 +0000)]
raise_memory_limit() earlier -- resolves OOM on 64-bit platforms

On 64-bit platforms the in-memory footprint of our libraries is quite a bit
larger than usual, and we hit the 8MB default memory limit before we call
raise_memory_limit(). This patch moves raise_memory_limit() and
get_realsize() to setuplib so we can call them earlier, and moves the
call to _before_ we include the libraries.

On AMD64, for MOODLE_17_STABLE the footprint is about 9.5MB. Diet time? :-)

18 years agoAutomatic installer.php lang files by installer_builder (20061226)
moodler [Tue, 26 Dec 2006 03:11:17 +0000 (03:11 +0000)]
Automatic installer.php lang files by installer_builder (20061226)

18 years agoMDL-7956 Add frameless and JSless message composition option - message text area...
skodak [Mon, 25 Dec 2006 22:38:56 +0000 (22:38 +0000)]
MDL-7956 Add frameless and JSless message composition option - message text area a bit smaller

18 years agoMDL-7956 Add frameless and JSless message composition option
skodak [Mon, 25 Dec 2006 22:34:05 +0000 (22:34 +0000)]
MDL-7956 Add frameless and JSless message composition option

18 years agoNow excel can be generated under iso-8859-1 (safer) based on the
stronk7 [Mon, 25 Dec 2006 19:51:17 +0000 (19:51 +0000)]
Now excel can be generated under iso-8859-1 (safer) based on the
$CFG->excelisofiles (true/false) value. It allows iso-8859-1
compatible sites to use better Excel generation. MDL-7993.

18 years agoMDL-7996 Add ods export support - basic functions needed for 1.8 release should be...
skodak [Mon, 25 Dec 2006 18:22:28 +0000 (18:22 +0000)]
MDL-7996 Add ods export support - basic functions needed for 1.8 release should be all working fine, more improvements later ;-)

18 years agoMDL-7996 Add ods export support - more formatting improvements and other fixes
skodak [Fri, 22 Dec 2006 22:30:11 +0000 (22:30 +0000)]
MDL-7996 Add ods export support - more formatting improvements and other fixes

18 years agoMDL-8003 - part - Use formslib for question editing forms
tjhunt [Fri, 22 Dec 2006 15:39:40 +0000 (15:39 +0000)]
MDL-8003 - part - Use formslib for question editing forms

This commit does two things:
1. Gives question types he opion to use formslib for their editing forms, instead of the old mechanism.
2. Converts the truefalse question type to formslib.

18 years agoNew param type: PARAM_NUMBER, for floating point numbers.
tjhunt [Fri, 22 Dec 2006 13:29:20 +0000 (13:29 +0000)]
New param type: PARAM_NUMBER, for floating point numbers.

18 years agoMDL-8002 - Don't show overall feedback for incomplete quiz attempts.
tjhunt [Fri, 22 Dec 2006 12:52:13 +0000 (12:52 +0000)]
MDL-8002 - Don't show overall feedback for incomplete quiz attempts.
Also, cleanup of mod/quiz/index.php

18 years agoMDL-7996 Add ods export support - row height implemented
skodak [Fri, 22 Dec 2006 10:37:02 +0000 (10:37 +0000)]
MDL-7996 Add ods export support - row height implemented

18 years agoMDL-7996 Add ods export support - column width fixed
skodak [Fri, 22 Dec 2006 10:26:34 +0000 (10:26 +0000)]
MDL-7996 Add ods export support - column width fixed

18 years agoMDL-7996 Add ods export support - added changing of column width
skodak [Fri, 22 Dec 2006 10:04:50 +0000 (10:04 +0000)]
MDL-7996 Add ods export support - added changing of column width

18 years agoMDL-7861, fixing xhtml tags
toyomoyo [Fri, 22 Dec 2006 07:19:00 +0000 (07:19 +0000)]
MDL-7861, fixing xhtml tags

18 years agoMDL-7861, fixing tags
toyomoyo [Fri, 22 Dec 2006 06:31:34 +0000 (06:31 +0000)]
MDL-7861, fixing tags

18 years agoMDL-7861, fixing broken tags
toyomoyo [Fri, 22 Dec 2006 05:58:28 +0000 (05:58 +0000)]
MDL-7861, fixing broken tags

18 years agoFixed lots of XHTML errors but still not working correctly in Strict
moodler [Fri, 22 Dec 2006 05:42:36 +0000 (05:42 +0000)]
Fixed lots of XHTML errors but still not working correctly in Strict

18 years agofixing broken tags for MDL-7861
toyomoyo [Fri, 22 Dec 2006 05:20:20 +0000 (05:20 +0000)]
fixing broken tags for MDL-7861

18 years agoAdded CDATA to Javascript
moodler [Fri, 22 Dec 2006 05:01:17 +0000 (05:01 +0000)]
Added CDATA to Javascript

18 years agoFixed XHTML and Javascript insertion of tags into the templates
moodler [Fri, 22 Dec 2006 04:55:41 +0000 (04:55 +0000)]
Fixed XHTML and Javascript insertion of tags into the templates

18 years agoAdded CDATA to Javascript
moodler [Fri, 22 Dec 2006 04:52:13 +0000 (04:52 +0000)]
Added CDATA to Javascript

18 years agoAdd CDATA to Javascript
moodler [Fri, 22 Dec 2006 04:35:06 +0000 (04:35 +0000)]
Add CDATA to Javascript

18 years agoAdded CDATA to Javascript
moodler [Fri, 22 Dec 2006 04:25:00 +0000 (04:25 +0000)]
Added CDATA to Javascript

18 years agotaking out unwanted/broken strings from mod_form to make form xhtml strict MDL-7861
toyomoyo [Fri, 22 Dec 2006 04:23:43 +0000 (04:23 +0000)]
taking out unwanted/broken strings from mod_form to make form xhtml strict MDL-7861

18 years agoAdded CDATA to Javascript
moodler [Fri, 22 Dec 2006 04:19:52 +0000 (04:19 +0000)]
Added CDATA to Javascript

18 years agoAdded CDATA to Javascript
moodler [Fri, 22 Dec 2006 04:17:56 +0000 (04:17 +0000)]
Added CDATA to Javascript

18 years agoMDL-7861, fixing broken tag
toyomoyo [Fri, 22 Dec 2006 02:51:41 +0000 (02:51 +0000)]
MDL-7861, fixing broken tag

18 years agoMore fixes in grade_display_letter_grades(). MDL-7861.
vyshane [Fri, 22 Dec 2006 02:34:42 +0000 (02:34 +0000)]
More fixes in grade_display_letter_grades(). MDL-7861.

18 years agoxhtml fix in grade_display_letter_grades() for MDL-7861.
vyshane [Fri, 22 Dec 2006 02:26:09 +0000 (02:26 +0000)]
xhtml fix in grade_display_letter_grades() for MDL-7861.

18 years agoxhtml fixes in grade_display_grade_weights() for MDL-7861.
vyshane [Fri, 22 Dec 2006 02:23:52 +0000 (02:23 +0000)]
xhtml fixes in grade_display_grade_weights() for MDL-7861.

18 years agoxhtml fix in grade_display_grade_preferences(). For MDL-7861.
vyshane [Fri, 22 Dec 2006 02:14:28 +0000 (02:14 +0000)]
xhtml fix in grade_display_grade_preferences(). For MDL-7861.

18 years agoMDL-7861, fixing xhtml forms
toyomoyo [Fri, 22 Dec 2006 02:10:41 +0000 (02:10 +0000)]
MDL-7861, fixing xhtml forms

18 years agofixing warning
toyomoyo [Fri, 22 Dec 2006 01:16:51 +0000 (01:16 +0000)]
fixing warning

18 years agoreplacing missing << with theme left arrow
toyomoyo [Fri, 22 Dec 2006 00:54:03 +0000 (00:54 +0000)]
replacing missing << with theme left arrow

18 years agoMDL-7996 Add ods export support - better xml from KSpread 1.6.1 :-)
skodak [Thu, 21 Dec 2006 22:18:17 +0000 (22:18 +0000)]
MDL-7996 Add ods export support - better xml from KSpread 1.6.1 :-)

18 years agodebugging(): our errors must be passed to PHP as E_USER_NOTICE
martinlanghoff [Thu, 21 Dec 2006 21:56:49 +0000 (21:56 +0000)]
debugging(): our errors must be passed to PHP as E_USER_NOTICE

18 years agoMDL-7996 Add ods export support - quiz report and number value, call time pass by...
skodak [Thu, 21 Dec 2006 20:34:51 +0000 (20:34 +0000)]
MDL-7996 Add ods export support - quiz report and number value, call time pass by ref... warnings fixed; fix in ods export lib

18 years agoMDL-7996 Add ods export support - more reports
skodak [Thu, 21 Dec 2006 19:46:29 +0000 (19:46 +0000)]
MDL-7996 Add ods export support - more reports

18 years agoIntegration 3 - groups in core, modules, calendar... (Part of MDL-7380, new groups)
nfreear [Thu, 21 Dec 2006 11:51:17 +0000 (11:51 +0000)]
Integration 3 - groups in core, modules, calendar... (Part of MDL-7380, new groups)

18 years agoMDL-7996 Add ods export support - added ods to course logs with other minor fixes...
skodak [Thu, 21 Dec 2006 10:58:18 +0000 (10:58 +0000)]
MDL-7996 Add ods export support - added ods to course logs with other minor fixes, implemented date support and added missing stub functions for better excel class compatibility

18 years agoMDL-7996 Add ods export support
skodak [Thu, 21 Dec 2006 08:12:10 +0000 (08:12 +0000)]
MDL-7996 Add ods export support

18 years agoMDL-7861, broken xhtml
toyomoyo [Thu, 21 Dec 2006 07:50:19 +0000 (07:50 +0000)]
MDL-7861, broken xhtml

18 years agoFixed xhtml issues in grade_set_categories(). MDL-7861.
vyshane [Thu, 21 Dec 2006 07:43:29 +0000 (07:43 +0000)]
Fixed xhtml issues in grade_set_categories(). MDL-7861.

18 years agoUncommented print_footer() in grade_stats() to make popup pass xhtml 1.0 strict valid...
vyshane [Thu, 21 Dec 2006 07:39:52 +0000 (07:39 +0000)]
Uncommented print_footer() in grade_stats() to make popup pass xhtml 1.0 strict validation. MDL-7861.

18 years agofix for MDL-7861, taking out extra </form> tag
toyomoyo [Thu, 21 Dec 2006 07:01:28 +0000 (07:01 +0000)]
fix for MDL-7861, taking out extra </form> tag

18 years agoFixes for MDL-7861.
vyshane [Thu, 21 Dec 2006 06:26:22 +0000 (06:26 +0000)]
Fixes for MDL-7861.

18 years agoFixes for MDL-7861.
vyshane [Thu, 21 Dec 2006 06:12:15 +0000 (06:12 +0000)]
Fixes for MDL-7861.

18 years agoxhtml fixes for MDL-7861.
vyshane [Thu, 21 Dec 2006 06:05:34 +0000 (06:05 +0000)]
xhtml fixes for MDL-7861.

18 years agoMDL-7861, fixng broken xhtml
toyomoyo [Thu, 21 Dec 2006 06:01:35 +0000 (06:01 +0000)]
MDL-7861, fixng broken xhtml

18 years agoMDL-7861, fixing xhtml strict problem
toyomoyo [Thu, 21 Dec 2006 05:48:08 +0000 (05:48 +0000)]
MDL-7861, fixing xhtml strict problem

18 years agoMDL-7861, fixing broken xhtml in loan calculator, adding CDATA tags
toyomoyo [Thu, 21 Dec 2006 04:45:44 +0000 (04:45 +0000)]
MDL-7861, fixing broken xhtml in loan calculator, adding CDATA tags

18 years agoIntroducing $CFG->debugdisplay -- mimics PHPs display_errors, controls debugging()
martinlanghoff [Thu, 21 Dec 2006 04:30:03 +0000 (04:30 +0000)]
Introducing $CFG->debugdisplay -- mimics PHPs display_errors, controls debugging()

18 years agodebugging(): use CFG->debugdisplay instead of PHPs display_errors
martinlanghoff [Thu, 21 Dec 2006 04:03:21 +0000 (04:03 +0000)]
debugging(): use CFG->debugdisplay instead of PHPs display_errors

18 years agodebugging(): use trigger_error() when !display_errors -- now you can debug stuff...
martinlanghoff [Thu, 21 Dec 2006 02:51:20 +0000 (02:51 +0000)]
debugging(): use trigger_error() when !display_errors -- now you can debug stuff without breaking HTTP headers, HTML and JS

18 years agologin form: Fix closing TR
martinlanghoff [Thu, 21 Dec 2006 02:20:28 +0000 (02:20 +0000)]
login form: Fix closing TR

opening TR is not conditional, so the closing one should not be conditional
either. Fixes XHTML compliance.

18 years agoMDL-7861, fixing broken xhtml
toyomoyo [Thu, 21 Dec 2006 02:12:44 +0000 (02:12 +0000)]
MDL-7861, fixing broken xhtml

18 years agofixing the last comit, removing addtional <
toyomoyo [Thu, 21 Dec 2006 01:37:33 +0000 (01:37 +0000)]
fixing the last comit, removing addtional <

18 years agofix for MDL-7861, removing doulbe <<
toyomoyo [Thu, 21 Dec 2006 01:31:46 +0000 (01:31 +0000)]
fix for MDL-7861, removing doulbe <<

18 years agofix for MDL-7861, strict xhtml
toyomoyo [Thu, 21 Dec 2006 01:14:57 +0000 (01:14 +0000)]
fix for MDL-7861, strict xhtml

18 years agofixing broken xhtml MDL-7861
toyomoyo [Thu, 21 Dec 2006 01:12:05 +0000 (01:12 +0000)]
fixing broken xhtml MDL-7861

18 years agoAdd support for multilang titles in forum->posts
stronk7 [Wed, 20 Dec 2006 16:41:11 +0000 (16:41 +0000)]
Add support for multilang titles in forum->posts

Merged from MOODLE_17_STABLE

18 years agoAdded one missing format_string() to post->subject
stronk7 [Wed, 20 Dec 2006 10:00:02 +0000 (10:00 +0000)]
Added one missing format_string() to post->subject

Merged from MOODLE_17_STABLE

18 years agoMDL-7861, adding new xhtml compatible import forms
toyomoyo [Wed, 20 Dec 2006 08:05:26 +0000 (08:05 +0000)]
MDL-7861, adding new xhtml compatible import forms

18 years agofixing broken xhtml MLD-7861
toyomoyo [Wed, 20 Dec 2006 07:15:23 +0000 (07:15 +0000)]
fixing broken xhtml MLD-7861

18 years agoMissing </div>. MDL-7861.
vyshane [Wed, 20 Dec 2006 06:14:18 +0000 (06:14 +0000)]
Missing </div>. MDL-7861.

18 years agoAdded missing html closing tags in function redirect() before the die call. MDL-7861.
vyshane [Wed, 20 Dec 2006 05:56:38 +0000 (05:56 +0000)]
Added missing html closing tags in function redirect() before the die call. MDL-7861.

18 years agoxhtml fixes for MDL-7861.
vyshane [Wed, 20 Dec 2006 05:55:22 +0000 (05:55 +0000)]
xhtml fixes for MDL-7861.

18 years agoMDL-7861, fixing broken xhtml tags
toyomoyo [Wed, 20 Dec 2006 03:44:59 +0000 (03:44 +0000)]
MDL-7861, fixing broken xhtml tags

18 years agoFixed xhtml issues. MDL-7861.
vyshane [Wed, 20 Dec 2006 02:38:10 +0000 (02:38 +0000)]
Fixed xhtml issues. MDL-7861.

18 years agoxhtml fixes for MDL-7861.
vyshane [Wed, 20 Dec 2006 02:25:52 +0000 (02:25 +0000)]
xhtml fixes for MDL-7861.

18 years agoMDL-7861 fixng lesson xhtml tags
toyomoyo [Wed, 20 Dec 2006 02:17:13 +0000 (02:17 +0000)]
MDL-7861 fixng lesson xhtml tags

18 years agofixing xhtml tags MDL-7861
toyomoyo [Wed, 20 Dec 2006 02:00:12 +0000 (02:00 +0000)]
fixing xhtml tags MDL-7861

18 years agoMDL-7861 fixing broken xhtml in lesson
toyomoyo [Wed, 20 Dec 2006 01:49:58 +0000 (01:49 +0000)]
MDL-7861 fixing broken xhtml in lesson

18 years agoAdded missing footer for delete confirmation view. MDL-7861.
vyshane [Wed, 20 Dec 2006 01:15:15 +0000 (01:15 +0000)]
Added missing footer for delete confirmation view. MDL-7861.

18 years agofixing warning
toyomoyo [Wed, 20 Dec 2006 01:01:05 +0000 (01:01 +0000)]
fixing warning

18 years agoMDL-7861, fixing broken xhtml tags
toyomoyo [Wed, 20 Dec 2006 00:48:49 +0000 (00:48 +0000)]
MDL-7861, fixing broken xhtml tags

18 years agogot rid of extra help button that shouldn't have been there.
jamiesensei [Tue, 19 Dec 2006 11:43:32 +0000 (11:43 +0000)]
got rid of extra help button that shouldn't have been there.

18 years agofix for MDL-7937 'Fatal error: Call to a member function on a non-object in /var...
jamiesensei [Tue, 19 Dec 2006 11:18:06 +0000 (11:18 +0000)]
fix for MDL-7937 'Fatal error: Call to a member function on a non-object in /var/www/dev/lib/pear/HTML/QuickForm.php on line 602 error'

18 years agoFixed a problem with double indexed elements in the GetValue method
csantossaenz [Tue, 19 Dec 2006 08:55:25 +0000 (08:55 +0000)]
Fixed a problem with double indexed elements in the GetValue method

18 years agoFixed a problem with double indexed elements in the GetValue method
csantossaenz [Tue, 19 Dec 2006 08:37:44 +0000 (08:37 +0000)]
Fixed a problem with double indexed elements in the GetValue method

18 years agoMDL-7861, taking out <br/>s in title tag
toyomoyo [Tue, 19 Dec 2006 07:19:13 +0000 (07:19 +0000)]
MDL-7861, taking out <br/>s in title tag

18 years agoadding missing tag MDL-7861
toyomoyo [Tue, 19 Dec 2006 07:05:48 +0000 (07:05 +0000)]
adding missing tag MDL-7861

18 years ago* Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/forms...
jamiesensei [Tue, 19 Dec 2006 07:03:08 +0000 (07:03 +0000)]
* Added setAdvanced functionality see http://docs.moodle.org/en/Development:lib/formslib.php_setAdvanced
* Added MoodleQuickForm method closeHeaderBefore($elementName); http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#Use_Fieldsets_to_group_Form_Elements
* Added moodleform method add_action_buttons(); see http://docs.moodle.org/en/Development:lib/formslib.php_Form_Definition#add_action_buttons.28.24cancel_.3D_true.2C_.24revert_.3D_true.2C_.24submitlabel.3Dnull.29.3B
* is_cancelled method added to moodleform http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page
* added hidden labels to elements within groups such as the date_selector select boxes and other elements in 'groups'
* quiz/mod.html migrated to formslib
* glossary/edit.html migrated to formslib
* extended registerNoSubmitButton() functionality to automatically add js to onclick to bypass client side js input validation.
* added no_submit_button_pressed() function that can be used in a similar way to is_cancelled() as a test in the main script to see if some button in the page has been pressed that is a submit button that is used for some dynamic functionality within the form and not to submit the data for the whole form.
* added new condition for disabledIf which allows to disable another form element if no options are selected from within a select element.
* added default 'action' for moodleform  - strip_querystring(qualified_me()) http://docs.moodle.org/en/Development:lib/formslib.php_Usage#Basic_Usage_in_A_Normal_Page

18 years agoMaking sure that restore views work in xhtml strict 1.0. MDL-7861.
vyshane [Tue, 19 Dec 2006 07:00:14 +0000 (07:00 +0000)]
Making sure that restore views work in xhtml strict 1.0. MDL-7861.

18 years agoMDL-7861, adding third param to error() function to print correct admin footer
toyomoyo [Tue, 19 Dec 2006 06:58:20 +0000 (06:58 +0000)]
MDL-7861, adding third param to error() function to print correct admin footer

18 years agoMDL-7861, adding third param to notice() function, so that the right footer is printe...
toyomoyo [Tue, 19 Dec 2006 06:49:45 +0000 (06:49 +0000)]
MDL-7861, adding third param to notice() function, so that the right footer is printed. Currently missing admin footer

18 years agoremoving extra tag MDL-7861
toyomoyo [Tue, 19 Dec 2006 06:19:16 +0000 (06:19 +0000)]
removing extra tag MDL-7861

18 years agoMDL-7861, adding missing tag
toyomoyo [Tue, 19 Dec 2006 06:16:17 +0000 (06:16 +0000)]
MDL-7861, adding missing tag

18 years agoMDL-7861, strict xhtml for course/index page
toyomoyo [Tue, 19 Dec 2006 05:57:55 +0000 (05:57 +0000)]
MDL-7861, strict xhtml for course/index page

18 years agoMerged from 1.7. Also contains some xhtml fixes for MDL-7861.
vyshane [Tue, 19 Dec 2006 05:02:22 +0000 (05:02 +0000)]
Merged from 1.7. Also contains some xhtml fixes for MDL-7861.

18 years agoMDL-7861, fixing xhtml strict problems in scales
toyomoyo [Tue, 19 Dec 2006 04:37:28 +0000 (04:37 +0000)]
MDL-7861, fixing xhtml strict problems in scales

18 years agoFixed some xhtml issues. MDL-7861.
vyshane [Tue, 19 Dec 2006 03:33:06 +0000 (03:33 +0000)]
Fixed some xhtml issues. MDL-7861.

18 years agono need to use javascript for a submit button
toyomoyo [Tue, 19 Dec 2006 02:34:38 +0000 (02:34 +0000)]
no need to use javascript for a submit button

18 years agoMDL-7861, fixing xhtml for lesson. When in strict mode, javascript button is not...
toyomoyo [Tue, 19 Dec 2006 01:52:39 +0000 (01:52 +0000)]
MDL-7861, fixing xhtml for lesson. When in strict mode, javascript button is not working

18 years agoMDL-7903 Guests can not enter course that allows guests with key; merged from MOODLE_...
skodak [Mon, 18 Dec 2006 19:21:10 +0000 (19:21 +0000)]
MDL-7903 Guests can not enter course that allows guests with key; merged from MOODLE_17_STABLE