nfreear [Tue, 2 Oct 2007 09:36:47 +0000 (09:36 +0000)]
Fixes MDL-11161, Activity type text ... beginning of activity links in Screen Reader...moved to end (also MDL- 7436)
martinlanghoff [Tue, 2 Oct 2007 08:46:27 +0000 (08:46 +0000)]
accesslib: dirty context handling now uses cache_flags
get_dirty_contexts() and mark_context_dirty() now use cache_flags
infrastructure. Remove deprecated cleanup_dirty_contexts() - this is
now handled by gc_cache_flags() in a more generic way.
martinlanghoff [Tue, 2 Oct 2007 08:39:44 +0000 (08:39 +0000)]
moodlelib: Introducing the cache_flags functions
These are functions for handling the volatile entries in the
cache_flags table.
get_cache_flags() - get array of current flags
set_cache_flag() - set a single flag
unset_cache_flag() - unset a single flag
gc_cache_flags() - garbage-collect expired flags
martinlanghoff [Tue, 2 Oct 2007 08:38:19 +0000 (08:38 +0000)]
version bump: introducing cache_flags table to store volatile time-bound flags
We are intending to use them for dirty context paths, lightweight
session entries for auth/ldap, and other similar uses...
MDL-11347
martinlanghoff [Tue, 2 Oct 2007 08:34:10 +0000 (08:34 +0000)]
dmllib: more consistent err handling for execute_sql() and others
Silent errors in execute_sql() have been causing us lots of grief.
Turns out that if you have dblogerror set, it _will_ write it to the
logs.
DMLlib wasn't consistent. Most "modern" codepaths were calling both
debugging() and the dblogerror idiom. So we make all calls to
$db->Execute() consistent.
(Some exceptions remain, mostly for hardcoded SQL, such as the SET
statements when we connect...)
gbateson [Tue, 2 Oct 2007 07:46:49 +0000 (07:46 +0000)]
added 4 new functions for Moodle 1.9 gradebook: "hotpot_get_user_grades", "hotpot_update_grades", "hotpot_grade_item_update" and "hotpot_grade_item_delete"
moodler [Tue, 2 Oct 2007 07:16:09 +0000 (07:16 +0000)]
Fixed a notice relating to customcorners not being initialised
donal72 [Tue, 2 Oct 2007 06:45:40 +0000 (06:45 +0000)]
Bugfix caused by typo in /mnet/lib.php: This issue will have broken mnet for many users.
moodler [Tue, 2 Oct 2007 06:18:30 +0000 (06:18 +0000)]
Applied DISTINCT as per Martin Langhoff's solution in MDL-11381
user/index: ensure each user appears only once in participants list
Regardless of the number of enrolments, ensure we list a single entry
per user using DISTINCT. Much easier to manage than a GROUP BY.
toyomoyo [Tue, 2 Oct 2007 03:37:30 +0000 (03:37 +0000)]
change participants of frontpage course to display all users, if current user has capability MDL-11143
mattc-catalyst [Tue, 2 Oct 2007 01:43:07 +0000 (01:43 +0000)]
MDL-11538: lib/olson - bugfix, olson time-zone import doesn't deal with rule changes in the future
Author: Matt Clarkson <mattc@catalyst.net.nz>
gbateson [Sun, 30 Sep 2007 04:21:52 +0000 (04:21 +0000)]
use new function "hotpot_stripslashes()" instead of PHP's "stripslashes()" to remove slashes after preg_replace with "e" modifier, because when MSSQL Server is installed, PHP's "stripslashes()" does not remove slashes, even if the Moodle database is not MSSQL
skodak [Sat, 29 Sep 2007 16:26:13 +0000 (16:26 +0000)]
MDL-11517 reserved word MOD used in table alias in questions backup code
skodak [Sat, 29 Sep 2007 16:18:01 +0000 (16:18 +0000)]
MDL-11516 removed Call-time pass-by-reference when using get_question_options()
skodak [Sat, 29 Sep 2007 16:07:52 +0000 (16:07 +0000)]
MDL-11510 added missing fields in new gradebook backup
skodak [Sat, 29 Sep 2007 13:48:41 +0000 (13:48 +0000)]
MDL-10383 added new subarray into $SESSION->activegroup which store active group in groupings for users with accessallgroups permission - defaults to 0 on first use; this should solve the problem when user has accessallgroups only in one activity
skodak [Sat, 29 Sep 2007 11:01:34 +0000 (11:01 +0000)]
MDL-11462 fixed PARAM_URL inline focs, uncommented old regex in URL validation library - official TLD not required anymore
skodak [Fri, 28 Sep 2007 21:58:02 +0000 (21:58 +0000)]
MDL-11504 added grade_letter -> grade_letters migration - will not be executed on dev sites where grade_letters already exists :-(
skodak [Fri, 28 Sep 2007 21:00:31 +0000 (21:00 +0000)]
MDL-11504 fixed defaults in grade_items/display; added decimals and display to grade_items_history
skodak [Fri, 28 Sep 2007 20:12:43 +0000 (20:12 +0000)]
MDL-11495 grade letter setting improvements:
* in_null for decimals defaults checks
* store letter settings only in database - no cfg settings
* separate configuration page for letters only - pluginselector+admin tree
* new capability to manage grade letters - similar to scales and outcomes
* added grade_letters db index
* grade letters related minor bugfixing
nfreear [Fri, 28 Sep 2007 12:57:15 +0000 (12:57 +0000)]
Fixes MDL-11496, SQL error when deleting a unit via the (ou) Publisher - delete groupings.
skodak [Fri, 28 Sep 2007 11:08:44 +0000 (11:08 +0000)]
MDL-11495 removed GRADE_DECIMALS_DEFAULT null constant, is_null() used instead for tests, -1 used in menu options
nicolasconnault [Fri, 28 Sep 2007 08:46:25 +0000 (08:46 +0000)]
MDL-11406 Removed lang files from block folder, and put them in en_utf8 and fr_utf8
nicolasconnault [Fri, 28 Sep 2007 07:55:51 +0000 (07:55 +0000)]
MDL-11480 Reviewed, tested, and pplied Petr's patch.
toyomoyo [Fri, 28 Sep 2007 07:25:09 +0000 (07:25 +0000)]
adding a fieldset
toyomoyo [Fri, 28 Sep 2007 07:21:48 +0000 (07:21 +0000)]
minor fixes/typo for notes
toyomoyo [Fri, 28 Sep 2007 03:07:03 +0000 (03:07 +0000)]
minor fixes for bulk user actions, adding ?>, using delete_user() function to delete users, etc
toyomoyo [Fri, 28 Sep 2007 01:53:45 +0000 (01:53 +0000)]
MDL-11478, fixing a notice
stronk7 [Thu, 27 Sep 2007 23:37:42 +0000 (23:37 +0000)]
Passing $course to require_login() provides correct and
automatic navlinks to the course. MDL-11452
nicolasconnault [Thu, 27 Sep 2007 18:00:25 +0000 (18:00 +0000)]
MDL-11456 the .grade-report-grader table {} style was cascading down to the popups (which use tables, alas...), so I created a number of css classes which now control color, font etc for caption and feedback cells of the popup.
stronk7 [Thu, 27 Sep 2007 15:10:52 +0000 (15:10 +0000)]
_new is _blank
jmg324 [Thu, 27 Sep 2007 12:38:40 +0000 (12:38 +0000)]
generate_email_supportuser needs to set maildisplay for email_to_user to include proper support details.
skodak [Thu, 27 Sep 2007 09:58:40 +0000 (09:58 +0000)]
MDL-10791 format_float() now supports non-localised output too (. decimal separator forced)
skodak [Thu, 27 Sep 2007 08:41:19 +0000 (08:41 +0000)]
MDL-11472 fixed harcoded mdl_ prefix in sql queries
skodak [Thu, 27 Sep 2007 08:18:28 +0000 (08:18 +0000)]
MDL-11442 removed last instances of global $course
jamiesensei [Thu, 27 Sep 2007 08:17:09 +0000 (08:17 +0000)]
fixed closing of popup on saving question which was broken and also added closing of popup on cancel.
jamiesensei [Thu, 27 Sep 2007 07:41:58 +0000 (07:41 +0000)]
modifiedby and timemodified is now set when a question is created as well as createdby and timecreated instead of being left as zero
skodak [Thu, 27 Sep 2007 07:06:17 +0000 (07:06 +0000)]
MDL-11451 adding default ipaddress restriction and 7 days lifetime for user key
skodak [Thu, 27 Sep 2007 06:56:51 +0000 (06:56 +0000)]
MDL-11451 fixing silly typo in cap name
tjhunt [Thu, 27 Sep 2007 06:54:17 +0000 (06:54 +0000)]
MDL-5327 - When making up a default question name from the question text, strip any HTML tags. Merged from MOODLE_18_STABLE.
skodak [Thu, 27 Sep 2007 06:51:54 +0000 (06:51 +0000)]
MDL-11451 grade publishing security/privacy improved - new capabilities needed for publishing, by default allowed only for admins; added warning to publishing option
toyomoyo [Thu, 27 Sep 2007 03:02:01 +0000 (03:02 +0000)]
fixing a typo
toyomoyo [Thu, 27 Sep 2007 02:29:46 +0000 (02:29 +0000)]
when no gradebook roles is set, there are lots of sql breakages so we should check gradebookroles first
toyomoyo [Thu, 27 Sep 2007 01:46:41 +0000 (01:46 +0000)]
modifying get_user_by_capability to handle requests on frontpage courses and sub contexts. MDL-11143
tjhunt [Wed, 26 Sep 2007 21:31:54 +0000 (21:31 +0000)]
MDL-11466 - failing to check for the case $rs = false in the accesslib performance improvements. Credit for the fix goes to Gareth Morgan.
tjhunt [Wed, 26 Sep 2007 20:45:23 +0000 (20:45 +0000)]
MDL-9331 - Problem with the tables on the quiz index page. Merged from MOODLE_18_STABLE.
tjhunt [Wed, 26 Sep 2007 20:13:47 +0000 (20:13 +0000)]
MDL-5086 - Improve the formatting of the question import and export help so that the code samples fit. Merged from MOODLE_18_STABLE.
tjhunt [Wed, 26 Sep 2007 20:10:08 +0000 (20:10 +0000)]
Tweak the styles for <pre> tags in help files. These are mostly used for code samples, and they have a grey background and are shown in a different font, so the indent I am getting rid of is not necessarly to make the structure of the document clearn, and usually just means that the code sample does not fit. Merged from MOODLE_18_STABLE.
skodak [Wed, 26 Sep 2007 19:34:54 +0000 (19:34 +0000)]
MDL-10985 improved form validation in xml grade import
skodak [Wed, 26 Sep 2007 19:25:50 +0000 (19:25 +0000)]
MDL-11460
tjhunt [Wed, 26 Sep 2007 18:15:31 +0000 (18:15 +0000)]
MDL-8682: Pressing enter when answering a short answer question can submit the wrong one. To fix this, I have disabled the enter key unless the keyboard focus is on a submit button (or inside a text box or HTML editor).
MDL-9451: Quiz answers can be lost if user navigates before page reloads. I am not totally sure I have fixed this, but I hope so. I moved the printing of the hidden form field with the list of questions on the page to the end of the form, so no answers will be processed unless the whole form loaded. Note that you could still lose data, but only if the page takes a really long time to load and you answer the first question and click submit before the whole quiz is loaded.
MDL-11463: The quiz uses two different timers, which is silly. I have removed the javascript that was ocasionally used to put a timer in the browser's title bar. Now we only use the one in the page for all cases.
Because MDL-8682 also needed javascript, I renamed timer.js to quiz.js so it could be a library of all the quiz's JavaScript, and started including it properly with require_js.
skodak [Wed, 26 Sep 2007 18:11:48 +0000 (18:11 +0000)]
MDL-10985 merged the xml and xmlurl grade import plug-in
tjhunt [Wed, 26 Sep 2007 17:48:27 +0000 (17:48 +0000)]
Comment out an if (ajaxenabled()) check that was stopping any javascript included with require_js before print_header from being included, (but not js included afterwareds). See
http://moodle.org/mod/forum/discuss.php?d=81050 for discussion.
skodak [Wed, 26 Sep 2007 17:30:24 +0000 (17:30 +0000)]
fix of disabledIf fix :-(
skodak [Wed, 26 Sep 2007 16:53:26 +0000 (16:53 +0000)]
MDL-11460 new function moodleform->get_file_content($elname) in case we need to get content of uploaded files
skodak [Wed, 26 Sep 2007 16:49:37 +0000 (16:49 +0000)]
fixed disabledif conditions
tjhunt [Wed, 26 Sep 2007 16:10:38 +0000 (16:10 +0000)]
MDL-11398 - Random questions sometimes ended up with names different from the cateogry they were actually picking from. Also, the same random questoin could be used in more than one quiz, in which case editing that question would change two quizzes unexpectedly. The fix is:
* Don't let the user set the name for random questions.
* Instead force the name to be "Random (catname)" (localised) whever the question is created or saved.
* When a category is renamed, rename all the random questions in it.
* Remove the restriction that Jamie seems to have added in 1.9 that was preventing the category of random questions from being edited.
nfreear [Wed, 26 Sep 2007 12:53:04 +0000 (12:53 +0000)]
Follow-up for MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually. Reorder.
nfreear [Wed, 26 Sep 2007 12:44:35 +0000 (12:44 +0000)]
Fixes "Notice: Undefined property: stdClass::$hideactivitytypenavlink..."
nicolasconnault [Wed, 26 Sep 2007 12:25:16 +0000 (12:25 +0000)]
Fixing OU report issues
moodler [Wed, 26 Sep 2007 11:42:36 +0000 (11:42 +0000)]
Not a pretty fix but it gets the preferences out of the way where users won't keep hitting the wrong submit
moodler [Wed, 26 Sep 2007 11:21:54 +0000 (11:21 +0000)]
Fixed the HTML editor being too wide for the messaging window MDL-11242
sam_marshall [Wed, 26 Sep 2007 11:19:41 +0000 (11:19 +0000)]
MDL-11455 renamed function I just added, to make it more consistent (sorry)
sam_marshall [Wed, 26 Sep 2007 11:13:09 +0000 (11:13 +0000)]
MDL-11455 Added function and option to grouplib (also corrected another comment)
skodak [Wed, 26 Sep 2007 11:02:36 +0000 (11:02 +0000)]
MDL-9636 fixed many sql injections in grade import code
nfreear [Wed, 26 Sep 2007 10:57:46 +0000 (10:57 +0000)]
Follow-up for MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in styling. Prefer "This week" to "Current week"
skodak [Wed, 26 Sep 2007 10:54:09 +0000 (10:54 +0000)]
MDL-9636 grade_items are now limited to current course only - can not import into other courses anymore
sam_marshall [Wed, 26 Sep 2007 10:16:25 +0000 (10:16 +0000)]
Corrected inaccurate comment (said 'group IDs' when it actually returns group objects)
tjhunt [Wed, 26 Sep 2007 10:13:23 +0000 (10:13 +0000)]
Add $Id$ tags.
tjhunt [Wed, 26 Sep 2007 10:11:13 +0000 (10:11 +0000)]
Get rid of duplicate $Id$ tags.
tjhunt [Wed, 26 Sep 2007 10:02:00 +0000 (10:02 +0000)]
MDL-11446 - when a set of radio buttons is a required field, don't colour the lables of all the individual radio buttons red.
skodak [Wed, 26 Sep 2007 10:00:51 +0000 (10:00 +0000)]
MDL-9636 corrected the creation of new manual grade items, added source parameter
skodak [Wed, 26 Sep 2007 09:42:28 +0000 (09:42 +0000)]
MDL-10985 import from remote xml file with key login option
tjhunt [Wed, 26 Sep 2007 09:40:28 +0000 (09:40 +0000)]
MDL-11454 - hard-coded mdl_ prefix. Also, wrong logic in is_siteadmin in accesslib.php.
gbateson [Wed, 26 Sep 2007 07:22:06 +0000 (07:22 +0000)]
change CONTEXT_MODULE to CONTEXT_COURSE in order to fix "Invalid context creation for level 50 instance" error on "mod/hotpot/index.php" caused by get_context_instance(CONTEXT_MODULE, $course->id) in "mod/hotpot/lib.php"
toyomoyo [Wed, 26 Sep 2007 07:19:30 +0000 (07:19 +0000)]
get_default_frontpage_role_access() should prolly not load overrides below course level
toyomoyo [Wed, 26 Sep 2007 07:12:38 +0000 (07:12 +0000)]
MDL-11143, adding a new setting "defaultfrontpageroleid" where you choose a role for all users on the front page
moodler [Wed, 26 Sep 2007 02:33:43 +0000 (02:33 +0000)]
Allow the Admin tree block to be displayed on the My Moodle page.
Reported in NZ workshop. MDL-11450
gbateson [Tue, 25 Sep 2007 21:43:39 +0000 (21:43 +0000)]
corrected include path for "moodleform_mod.php"; changed $course->id to $COURSE->id;
nicolasconnault [Tue, 25 Sep 2007 19:32:29 +0000 (19:32 +0000)]
Fixing OU report issues
tjhunt [Tue, 25 Sep 2007 17:18:08 +0000 (17:18 +0000)]
MDL-10402 - udpate the Main glossary help file, to clarify the position with Main glossaries since Moodle 1.7.
sam_marshall [Tue, 25 Sep 2007 15:52:33 +0000 (15:52 +0000)]
MDL-11443 Added groups_get_grouping_name to match groups_get_group_name
nfreear [Tue, 25 Sep 2007 15:15:07 +0000 (15:15 +0000)]
Fix MDL-7436 Accessibility "Indicate type of resource in the name of the resource"
nfreear [Tue, 25 Sep 2007 14:59:16 +0000 (14:59 +0000)]
Fix MDL-7436 Accessibility "Indicate type of resource in the name of the resource"
tjhunt [Tue, 25 Sep 2007 14:44:53 +0000 (14:44 +0000)]
MDL-10898 - Option to back up only selected role assignements when backing up a course with users.
nicolasconnault [Tue, 25 Sep 2007 14:40:49 +0000 (14:40 +0000)]
MDL-11433 Implemented grade_items.decimals instead of user preference in grader report.
tjhunt [Tue, 25 Sep 2007 14:39:42 +0000 (14:39 +0000)]
Remove spurious characters from some SQL statements.
skodak [Tue, 25 Sep 2007 14:34:13 +0000 (14:34 +0000)]
MDL-11415 fixed our non-standard lang attributes in html purifier
skodak [Tue, 25 Sep 2007 14:02:53 +0000 (14:02 +0000)]
MDL-11413 I hope now it is correct solution
skodak [Tue, 25 Sep 2007 12:31:39 +0000 (12:31 +0000)]
MDL-11440 working fix for require_user_key_login()
nfreear [Tue, 25 Sep 2007 12:05:36 +0000 (12:05 +0000)]
MDL-1149 Accessibility: Current week/topic is NOT indicated non-visually, only in styling.
nfreear [Tue, 25 Sep 2007 12:00:51 +0000 (12:00 +0000)]
MDL-1149 Accessibility: Current week is NOT indicated non-visually, only in styling.
nfreear [Tue, 25 Sep 2007 11:34:40 +0000 (11:34 +0000)]
MDL-11436, Encapsulate "accesshide" HTML class in function, and use. Merged.
nfreear [Tue, 25 Sep 2007 11:33:30 +0000 (11:33 +0000)]
MDL-11436, Encapsulate "accesshide" HTML class in function.
skodak [Tue, 25 Sep 2007 11:02:12 +0000 (11:02 +0000)]
no text formating in grade xml export for now - we need the original values for reimport
nicolasconnault [Tue, 25 Sep 2007 09:47:40 +0000 (09:47 +0000)]
MDL-11433 Correcting non-null and default value (Default will be NULL)
skodak [Tue, 25 Sep 2007 09:37:58 +0000 (09:37 +0000)]
MDL-11434 $CFG->filelifetime = 0 has no effect; patch by Chris Fryer
nicolasconnault [Tue, 25 Sep 2007 08:35:16 +0000 (08:35 +0000)]
MDL-11433 Added decimals field to grade_items table
nicolasconnault [Tue, 25 Sep 2007 08:22:20 +0000 (08:22 +0000)]
Replacing GRADE_REPORT_GRADE_DISPLAY_TYPE... by GRADE_DISPLAY_TYPE...
stronk7 [Mon, 24 Sep 2007 22:32:31 +0000 (22:32 +0000)]
group/db isn't a source of xml files anymore. MDL-11431