Git commits in Moodle 2.0.0 by Gordon Bateson

commit 87859677040e7aeb4c229e5237a80e39b57bf132
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Fri, 11 Jun 2010 07:42:23 +0800
Tag:    v2.0.0-rc1

mod/hotpot MDL-22726 fix importing of intructions from a Hot Potatoes quiz file into the Moodle question bank

commit 9e43b1db73ec0431da9e0a3223cd28bc65293454
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Fri, 14 May 2010 11:46:30 +0800
Tag:    v2.0.0-rc1

further (and final) merge of changes from Moodle 1.9

commit 90fb280427efffdbebb814bd5cff113178dd15a1
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Fri, 14 May 2010 11:17:43 +0800
Tag:    v2.0.0-rc1

standardize white space, including line endings

commit ca091dc198aca84005d07f6f5b9fc55c119b83af
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Fri, 14 May 2010 11:14:22 +0800
Tag:    v2.0.0-rc1

merge changes from HotPot moodle 1.9

commit 47e9d91b1f44719a7628f7fb216966119690d640
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Thu, 11 Feb 2010 10:55:40 +0800
Tag:    v2.0.0-rc1

fix student access to HotPots in tail of a HotPot quiz chain

commit 5fd1edeb8f6e5e5c8a89deee4ad2095641270990
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Mon, 25 Jan 2010 15:18:24 +0800
Tag:    v2.0.0-rc1

do not treat https absolute urls as relative urls

commit da92577c008c4281350df709236a27148a5a9c94
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Tue, 12 Jan 2010 15:27:43 +0800
Tag:    v2.0.0-rc1

add groupings awareness to HotPot module

commit cb514f984e65dd2b2b66c8900f31c749d27bd7ad
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Mon, 14 Dec 2009 11:29:33 +0800
Tag:    v2.0.0-rc1

for consistency, use 0x80 instead of 128 in hotpot_charcode_to_utf8()

commit eaa658c4b2736786298b48a97ea89d904c25bb79
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Tue, 08 Dec 2009 12:13:20 +0800
Tag:    v2.0.0-rc1

MDL-20810: add missing function hotpot_charcode_to_utf8() required when importing Hot Potatoes files containing non-ascii chars into Moodle question bank

commit bf38af3f55885b5892f684c486bb0e8174ef61ef
Author: Gordon Bateson <gordon@kanazawa-gu.ac.jp>
Date:   Mon, 09 Nov 2009 09:29:57 +0800
Tag:    v2.0.0-rc1

ensure user has_capability('mod/hotpot:attempt', $module) when viewing a HotPot or submitting results

commit 29f14f1f9f1a192ac5931e8db2c1f0471fb55910
Author: gbateson <gbateson>
Date:   Fri, 16 Oct 2009 13:35:51 +0800
Tag:    v2.0.0-rc1

HotPot: refine detection of media urls in escaped javascript and <param> tags

commit ebe387a9a070252ef6a8fd7ea62e334236009165
Author: gbateson <gbateson>
Date:   Fri, 25 Sep 2009 14:21:28 +0800
Tag:    v2.0.0-rc1

stricter checking of null fields when restoring HotPots in order to avoid unwanted chars being inserted into empty char fields on PostgreSQL sites

commit 50476da5c36ce46fe759de809c2ee0c0643df5d9
Author: gbateson <gbateson>
Date:   Tue, 01 Sep 2009 09:25:23 +0800
Tag:    v2.0.0-rc1

MDL-20184 use $this->error() to print error message if no questions found importing from a Hot Potatoes XML file into Moodle's question bank / Quiz module

commit e564571835157bbed16326ced3b32725365990ee
Author: gbateson <gbateson>
Date:   Tue, 01 Sep 2009 09:05:41 +0800
Tag:    v2.0.0-rc1

MDL-20184 more efficient and accurate detection of missing nodes in xml tree when importing Hot Potatoes XML files to Moodle question bank / quiz module

commit eb01b2e97653b0fb57fcbc96e4aa32e2a9d39fe0
Author: gbateson <gbateson>
Date:   Mon, 31 Aug 2009 10:08:00 +0800
Tag:    v2.0.0-rc1

MDL-20184 when importing questions from Hot Potatoes files to Moodle question-bank / Quiz module, the readquestions() function wil return "false", to signify an error, if no questions are detected in the import file

commit 489a7b243fd23605049e16829414df6e346e4a53
Author: gbateson <gbateson>
Date:   Mon, 31 Aug 2009 09:36:01 +0800
Tag:    v2.0.0-rc1

MDL-20185 detect zero, "0", as an answer for a gap in a JCloze when importing to the Moodle's question bank / Quiz module

commit 4460e25d2b85c852f2719056816364162e109c7a
Author: gbateson <gbateson>
Date:   Fri, 28 Aug 2009 16:04:48 +0800
Tag:    v2.0.0-rc1

HotPot module: differentiate between "guesses-correct" (JCloze) and "guess-correct" (JCross, JMatch, JMix, JQuiz) in HotPot xml files and fix PreloadImages function for multiple images

commit 34adfa0f5cc75862091660cc77be8b796d8d29bc
Author: gbateson <gbateson>
Date:   Tue, 25 Aug 2009 09:28:51 +0800
Tag:    v2.0.0-rc1

add hotpot_encode_content_links() and hotpot_decode_content_links() to HotPot's backuplib.php and restorelib.php respectively

commit 14fa46fa002958adb34d37559eb2bcd7d94952b3
Author: gbateson <gbateson>
Date:   Sun, 24 May 2009 17:03:09 +0800
Tag:    v2.0.0-rc1

fixes for XHTML strict: add <fieldset> arround hidden form fields, use "id" instead of "name" to locate forms, use HTML entities in button captions <= and =>

commit 801ab89d93f88aca1f1a179be06e3ef721b69f67
Author: gbateson <gbateson>
Date:   Fri, 08 May 2009 07:02:34 +0800
Tag:    v2.0.0-rc1

when searhcing for urls of next quiz, remove requirement for navigation buttons to have class="NavButton"

commit 7c3f66a7a59daaed44b89fe7b0f1aa2197f52991
Author: gbateson <gbateson>
Date:   Mon, 20 Apr 2009 07:49:04 +0800
Tag:    v2.0.0-rc1

MDL-18880: only insert media players for swf URLs if $CFG->filter_mediaplugin_enable_swf is set

commit afa44721ba13e2e0d25bb66363db0849caababee
Author: gbateson <gbateson>
Date:   Fri, 17 Apr 2009 10:27:04 +0800
Tag:    v2.0.0-rc1

MDL-17426: removing superflous link to "Selecting a report"

commit 8693dca9a0a7dca10382426ff61af4106b498090
Author: gbateson <gbateson>
Date:   Fri, 17 Apr 2009 09:51:35 +0800
Tag:    v2.0.0-rc1

MDL-18883: fix setting of absolute urls for images in subfolders of course files

commit d6cbe5f54630513c0ca829340e0d7450b896270d
Author: gbateson <gbateson>
Date:   Mon, 30 Mar 2009 15:09:56 +0800
Tag:    v2.0.0-rc1

MDL-18409: new message required for "Remove grade item" form element

commit 08b8e025fb234d91548bec40897e9b4f21d5d64b
Author: gbateson <gbateson>
Date:   Mon, 30 Mar 2009 15:03:55 +0800
Tag:    v2.0.0-rc1

when search for media players, remove requirment for <object> tag to contain a space, and make closing </A> tag lowercase

commit 94328e504c5f640f9b372815f97f52a9ff22d621
Author: gbateson <gbateson>
Date:   Mon, 16 Mar 2009 10:52:15 +0900
Tag:    v2.0.0-rc1

recalcualte grades when HotPot grading method changes

commit e9436332453ce4998d65eb995b55c3177f4fff84
Author: gbateson <gbateson>
Date:   Tue, 27 Jan 2009 17:52:03 +0900
Tag:    v2.0.0-rc1

MDL-17679: implement course reset for HotPot module (thanks to Albert Gasset)

commit 82cbedd1ae4a1349db198f9c7462e3477c02f4a5
Author: gbateson <gbateson>
Date:   Sun, 21 Dec 2008 10:49:16 +0900
Tag:    v2.0.0-rc1

MDL-6467 add "swf" and "flv" to the list of files for which relative urls are converted to absolute urls

commit c0e8897d28b01faa35b0afb055d2f9b8db6d77a1
Author: gbateson <gbateson>
Date:   Sun, 09 Nov 2008 12:39:15 +0900
Tag:    v2.0.0-rc1

mod hotpot: fix undefined global variable $COURSE

commit 993dcb052431883f9bd9ead098615e964caaf491
Author: gbateson <gbateson>
Date:   Thu, 30 Oct 2008 16:40:00 +0900
Tag:    v2.0.0-rc1

MDL-16300: use cache to minimize the use of "get_users_by_capability()"

commit 2a5e1ba72f74f38f5f6c854eb29d9623b2e643e0
Author: gbateson <gbateson>
Date:   Thu, 30 Oct 2008 15:25:45 +0900
Tag:    v2.0.0-rc1

use "md5key" as secondary key on hotpot_strings table; allow for non-unique secondary keys on hotpot tables (can happen on hotpot_strings)

commit 8673ee0d54af8e9af7e4cdbf3fc1877114b06a40
Author: gbateson <gbateson>
Date:   Sun, 03 Aug 2008 05:29:42 +0800
Tag:    v2.0.0-rc1

MDL-15811 fix quotes: width=240" -> width="240" (3 occurrences)

commit accb4c04eb7e6521c9a543a13b34a394474a92ff
Author: gbateson <gbateson>
Date:   Sun, 13 Jul 2008 20:22:32 +0800
Tag:    v2.0.0-rc1

improvements to generation of html from xml: JCloze: set textbox size allowing for minimum gap size setting and longest answer; JMatch: allow for duplicates and distractors in RHS items; JQuiz: set textbox size allowing for longest answer, and use textarea if answer longer than 29 chars;

commit a4856975fac5a3f6ccc3394e350894a0d2962dd3
Author: gbateson <gbateson>
Date:   Sun, 13 Jul 2008 06:59:45 +0800
Tag:    v2.0.0-rc1

MDL-14279 fixed typo in get_baseurl: get_file_url($this->filedir.'/') should be get_file_url($this->filedir).'/'

commit e5e02e46861f9c1b88782cb1ef8737253412be33
Author: gbateson <gbateson>
Date:   Tue, 01 Jul 2008 18:49:22 +0800
Tag:    v2.0.0-rc1

MDL-15184: fix sql injection vulnerability

commit 65656c537cd847d9e5074dab3f04aba526b1b0e8
Author: gbateson <gbateson>
Date:   Sat, 21 Jun 2008 06:59:36 +0800
Tag:    v2.0.0-rc1

added hidden "summarysource" field when updating a HotPot. This fixes "undefined property" error from mod/hotpot/lib.php

commit 33e0f22e19f58f807e3a069e1d8e57f528bc717b
Author: gbateson <gbateson>
Date:   Sat, 21 Jun 2008 06:29:02 +0800
Tag:    v2.0.0-rc1

replace get_jmatch_items by set_jmatch_items

commit 4262494a993c3901c9e984632c0a42de72378abd
Author: gbateson <gbateson>
Date:   Thu, 19 Jun 2008 13:59:58 +0800
Tag:    v2.0.0-rc1

allow <img> and other tags in LHS of JMatch in "v6" output format

commit 19e84922994cfd7205ac11ebc1431ddde1a9a1ca
Author: gbateson <gbateson>
Date:   Sat, 07 Jun 2008 09:43:47 +0800
Tag:    v2.0.0-rc1

fix conversion of relative URLs in Hot Potatoes "<=" and "=>" buttons on sites where slasharguments as disabled (Site Admin -> Server -> HTTP -> Use slash arguments)

commit 5abcfe582da4bd63d7383b3e9c1c2efdcddb89ff
Author: gbateson <gbateson>
Date:   Thu, 27 Mar 2008 17:14:44 +0900
Tag:    v2.0.0-rc1

trigger the updating of grades from earlier versions of Moodle merge other fixes from Moodle 19 hotpot/lib.php

commit 2eb9cce68ebee9df4f0573c97a772598378498d0
Author: gbateson <gbateson>
Date:   Thu, 07 Feb 2008 13:17:55 +0900
Tag:    v2.0.0-rc1

MDL-13328 correct the counting of attempts when clickreporting has been enabled

commit 94b7cd35d3fea400b0835b029275d8e0346ea3f1
Author: gbateson <gbateson>
Date:   Tue, 05 Feb 2008 13:25:19 +0900
Tag:    v2.0.0-rc1

MDL-10451 remove extraneous closing </b> tag from lang/en_utf8/help/hotpot/outputformat.html

commit 74337425666f749288a9938ba2d525204608e3b5
Author: gbateson <gbateson>
Date:   Tue, 05 Feb 2008 13:13:51 +0900
Tag:    v2.0.0-rc1

MDL-13048 fix indefined course id when importing a Hot Potatoes quiz into the Lesson module

commit 9d042298ff4176b40c3e91738bb44207cbe38f99
Author: gbateson <gbateson>
Date:   Thu, 31 Jan 2008 16:28:30 +0900
Tag:    v2.0.0-rc1

fix for MDL-13174 ' replace calls to html_entity_decode() with hotpot_charcode_to_utf8() because html_entity_decode is broken in PHP4

commit 4c1c3dfb713657a9b0c7296af048c4b12a66811b
Author: gbateson <gbateson>
Date:   Mon, 28 Jan 2008 09:51:43 +0900
Tag:    v2.0.0-rc1

fix Undefined index:  studentfeedbackurl in mod\hotpot\mod_form.php on line 305

commit c5d7d046242c7e7157f722243da1f037a2481838
Author: gbateson <gbateson>
Date:   Mon, 28 Jan 2008 09:49:58 +0900
Tag:    v2.0.0-rc1

fix Undefined property:  stdClass::$displaynext in mod\hotpot\lib.php on line 356

commit e5eabf22fec30abfbd4f68b202a9560fc69a9bd5
Author: gbateson <gbateson>
Date:   Mon, 21 Jan 2008 17:16:02 +0900
Tag:    v2.0.0-rc1

fix Undefined property:  stdClass::$studentfeedbackurl (line 282) and Undefined property:  stdClass::$cellcontent2 (line 1081) in mod/hotpot/lib.php

commit ab327964e7635f49d950a7b8054b23fd7bbffdc0
Author: gbateson <gbateson>
Date:   Mon, 21 Jan 2008 17:13:46 +0900
Tag:    v2.0.0-rc1

fix MDL-13047 in which an invalid SQL query was run if no attempts were foudn to match the conditions of the required report

commit 0c78faaa1ccd94a1d382bbae2b145665ef4bd786
Author: gbateson <gbateson>
Date:   Mon, 21 Jan 2008 17:09:31 +0900
Tag:    v2.0.0-rc1

fix Error in call to helpbutton function: at least one of $title and $linktext is required

commit b3c6fa1e922b7c920a9a6e7210f941b0d2da17fe
Author: gbateson <gbateson>
Date:   Tue, 27 Nov 2007 17:46:40 +0900
Tag:    v2.0.0-rc1

MDL-12318 filter/mediaplugins/filter.php can no longer insert mediaplayers into javascript, so hotpot module now requires its own filter to mimic behavior of multimedia filter in Moodle 1.7

commit 8f95eff2ca90f57287d6eb8ced4340090f622463
Author: gbateson <gbateson>
Date:   Mon, 12 Nov 2007 17:54:35 +0900
Tag:    v2.0.0-rc1

fix for MDL-9713 : use XMLDB functions to create tables when mod/hotpot/db/mysql.sql is not found. This allows upgrade direct from Moodle 1.5 (or earlier) to Moodle 1.8 (or later)

commit 7762e45ef494bc41da34f9b6dfe0965ca3e2c6b4
Author: gbateson <gbateson>
Date:   Mon, 22 Oct 2007 09:48:14 +0800
Tag:    v2.0.0-rc1

improve XHTML compatability of HotPot reports; fix termination of <input> tags for JCloze and JQuiz

commit f6c4bee314e91a65f0f4f239a346470ca5844d3e
Author: gbateson <gbateson>
Date:   Sun, 21 Oct 2007 11:02:55 +0800
Tag:    v2.0.0-rc1

improvements to XHTML compatability (merged from 1.9)

commit 2958e18586b7d1cfa603f513afe60a8d347f1bb7
Author: gbateson <gbateson>
Date:   Mon, 15 Oct 2007 09:00:38 +0800
Tag:    v2.0.0-rc1

where the correct responses on a JQuiz multiple choice question all have a score of 0%, the scores will be corrected to 100%