Git commits in Moodle 1.9.0 by jamiesensei

commit 1fe2c24de394472fa9b3752c7c263eb55cfb9e23
Author: jamiesensei <jamiesensei>
Date:   Tue, 05 Feb 2008 21:08:38 +0900
Tag:    v1.9.0

MDL-13298 "Question bank displays always page 1 after adding new question" this was caused because the question creation page was redirecting back to the question back edit page and telling it to change to the category of the question that was just saved. This was causing the edit page to go back to page 0 of the new category. Now we only go back to page 0 if the category has actually changed.

commit c6a40756095c4013783798d5fbf07a30a9c6d416
Author: jamiesensei <jamiesensei>
Date:   Tue, 05 Feb 2008 20:24:19 +0900
Tag:    v1.9.0

MDL-13005 When trying to restore a course when you have more then one quiz and you choose only one quiz, the restore fails when trying to create categories and questions. Fixed this by ignoring module context level  q categories in backup when the course module has not already been restored.

commit 4811aacb5a3bf25f7b56f8e36287961584b60d3f
Author: jamiesensei <jamiesensei>
Date:   Tue, 05 Feb 2008 19:16:40 +0900
Tag:    v1.9.0

MDL-13034 fixes "insertion of question / category ids at the CONTEXT_MODULE level does not respect whether the instance of the module has been selected for backup" and cleans up code a little. The last commit for this issue did not include any changes.

commit ed3a8746328a3ce0b4aae32466f8b13aaef07989
Author: jamiesensei <jamiesensei>
Date:   Fri, 25 Jan 2008 16:06:34 +0900
Tag:    v1.9.0

MDL-13156 "insert_category_and_question_ids() function name can cause name conflicts"

commit acfc18d8e89450f40818844560b74a396f83767e
Author: jamiesensei <jamiesensei>
Date:   Sat, 19 Jan 2008 00:09:55 +0900
Tag:    v1.9.0

MDL-13034 fixes "insertion of question / category ids at the CONTEXT_MODULE level does not respect whether the instance of the module has been selected for backup" and cleans up code a little. merged from HEAD

commit 4a6a7074ce8d813032581bbc1f64e8b0ba32f2df
Author: jamiesensei <jamiesensei>
Date:   Sun, 13 Jan 2008 17:54:56 +0900
Tag:    v1.9.0

MDL-12695 Symantec Norton internet security pop up blocker seems to be stopping user starting a quiz attempt - fixed this by using print_single_button which uses an onclick event to trigger a confirm dialogue, should work better even with popup blockers.

commit f92b08d9e19338ed2a72c971848fb5f490ffc631
Author: jamiesensei <jamiesensei>
Date:   Sun, 13 Jan 2008 17:35:38 +0900
Tag:    v1.9.0

whitespace clean up, removed all indentation with tabs and trailing white space

commit d42e5b0034920670fcac6aff254151540b1abcc1
Author: jamiesensei <jamiesensei>
Date:   Sun, 13 Jan 2008 17:09:09 +0900
Tag:    v1.9.0

MDL-12906 add an optional parameter $jsconfirmmessage parameter to print_single_button

commit be350cb12753ff11615f3b3917e2dbc2790f4f93
Author: jamiesensei <jamiesensei>
Date:   Tue, 11 Dec 2007 12:54:21 +0900
Tag:    v1.9.0

MDL-12410 - a way to select which questions to export, includes debug messages

commit 619b3ca8db43bea7b8c4eae094399c7c499ccb89
Author: jamiesensei <jamiesensei>
Date:   Mon, 26 Nov 2007 22:34:47 +0900
Tag:    v1.9.0

fix for error message

commit 6f9ce92696ab5802bf6e9e25566cdc5f7685aaf0
Author: jamiesensei <jamiesensei>
Date:   Wed, 10 Oct 2007 23:23:24 +0800
Tag:    v1.9.0

fix for MDL-11692. There were notices about subquestions not being defined. This seems to indicate that there is a problem elsewhere that somehow matching questions without subquestions are  in the site db. But suppressed the notice by testing to see if subquestions is set before looping through the questions.

commit be801b8b3afd80b3eb66d86577b98c8dd039fdac
Author: jamiesensei <jamiesensei>
Date:   Wed, 03 Oct 2007 12:42:57 +0800
Tag:    v1.9.0

MDL-11139 "Need to pass courseid or cmid to this script when moving questions between categories "  added COURSE to globals in function that redirects browser to contextmoveq page.

commit 489984a7a27ba5601ee1790c93afbd03f7bd8c9e
Author: jamiesensei <jamiesensei>
Date:   Wed, 03 Oct 2007 11:16:27 +0800
Tag:    v1.9.0

fix for fatal error in tabs.php because of missing global var contexts.

commit 11a6096775e9a786848652f0e48904d56fdbeaf4
Author: jamiesensei <jamiesensei>
Date:   Thu, 27 Sep 2007 16:17:09 +0800
Tag:    v1.9.0

fixed closing of popup on saving question which was broken and also added closing of popup on cancel.

commit cb14dd63169b409b595b7145c21de431d9736f15
Author: jamiesensei <jamiesensei>
Date:   Thu, 27 Sep 2007 15:41:58 +0800
Tag:    v1.9.0

modifiedby and timemodified is now set when a question is created as well as createdby and timecreated instead of being left as zero

commit 87dfa4d26f23de58988b7db714af79339cfe710a
Author: jamiesensei <jamiesensei>
Date:   Mon, 24 Sep 2007 21:23:58 +0800
Tag:    v1.9.0

MDL-11423 removed a stray print_object call

commit 8f0f605ddfd0e892896985ab4c3d17f32d73e682
Author: jamiesensei <jamiesensei>
Date:   Tue, 18 Sep 2007 19:23:29 +0800
Tag:    v1.9.0

moved question_make_default_categories function to questionlib.php since it is needed by other modules outside the question bank editing interface.

commit 41b6d0011c7a143df3062be8454f2bb18b200238
Author: jamiesensei <jamiesensei>
Date:   Tue, 18 Sep 2007 17:35:44 +0800
Tag:    v1.9.0

MDL-11318 formslib now respects a template for an element if it is set. But since formslib uses the templates to insert help buttons for setAdvanced functionality etc. if you use templates you will lose this functionality.

commit 15822170d42ec01bceb31944cd84e81bfb262d91
Author: jamiesensei <jamiesensei>
Date:   Tue, 11 Sep 2007 17:01:21 +0800
Tag:    v1.9.0

removing require that is not needed

commit 479cca8a1e31215bb3f851882c0dc76013af31d7
Author: jamiesensei <jamiesensei>
Date:   Tue, 11 Sep 2007 16:23:00 +0800
Tag:    v1.9.0

fix to make breadcrumbs module independent

commit 15b83581ce5b665a58b1f72e1edbd241531666a9
Author: jamiesensei <jamiesensei>
Date:   Mon, 10 Sep 2007 21:28:18 +0800
Tag:    v1.9.0

test for has_capability before displaying choosecoursefile control as if user does not have permission then control is useless.

commit d0508099c6e86a3b270dfc41e78871c43cbba25c
Author: jamiesensei <jamiesensei>
Date:   Fri, 07 Sep 2007 16:01:08 +0800
Tag:    v1.9.0

oops. Stray 'as' used for table name alias in SQL.

commit 5d5a477f1a15ed6aa474785be82289a4eecdbc6c
Author: jamiesensei <jamiesensei>
Date:   Tue, 04 Sep 2007 21:28:50 +0800
Tag:    v1.9.0

removing redundant string fetches

commit 6943c3b9caef43aaf56f4ad51d4290313d10222a
Author: jamiesensei <jamiesensei>
Date:   Tue, 04 Sep 2007 20:42:03 +0800
Tag:    v1.9.0

removed stray echo statement

commit 9fc3100f2721ba57bc9c7afaddea120d460153c3
Author: jamiesensei <jamiesensei>
Date:   Tue, 04 Sep 2007 19:55:10 +0800
Tag:    v1.9.0

fix for MDL-11106 Images not showing up in shared categories

commit 3a4a9233ce4f8d34a76158d9be78458f3eb3d08f
Author: jamiesensei <jamiesensei>
Date:   Tue, 04 Sep 2007 13:44:14 +0800
Tag:    v1.9.0

fix for some problems with page params

commit 1672b5462fd2a3d83a946198e70a2b479be1faff
Author: jamiesensei <jamiesensei>
Date:   Mon, 03 Sep 2007 21:09:04 +0800
Tag:    v1.9.0

removing qcreate directory that I accidentally committed to HEAD when trying to commit changes to the NEWMODULE template.

commit 594019f7937c81cea039912a438040b603d08677
Author: jamiesensei <jamiesensei>
Date:   Mon, 03 Sep 2007 21:03:20 +0800
Tag:    v1.9.0

bit more detail for what needs renaming

commit 0d6e8291a0a5e5df61eca2cf7916d8a26a963518
Author: jamiesensei <jamiesensei>
Date:   Mon, 03 Sep 2007 19:51:25 +0800
Tag:    v1.9.0

MDL-11108 some PHP notices on upgrade of sites to 1.9 where there are no question categories set up

commit 35241c761a698bbb5eedbc6ff2d8796aefb19bd8
Author: jamiesensei <jamiesensei>
Date:   Mon, 03 Sep 2007 13:30:38 +0800
Tag:    v1.9.0

MDL-10952 update help files for new question code

commit 0647e82b57e5bc6f4046208b916520b78fe7d832
Author: jamiesensei <jamiesensei>
Date:   Wed, 29 Aug 2007 11:04:01 +0800
Tag:    v1.9.0

check for viewall / viewmine permission for each question in a category selected for export.

commit 522b89d1aa06f70657e4c29edde0b09075d7dc7f
Author: jamiesensei <jamiesensei>
Date:   Tue, 28 Aug 2007 11:36:17 +0800
Tag:    v1.9.0

allow selection of category in any context when adding a question in question_form

commit f3771632e8ec81b28f4ad4c5bc6a32d853d6a4ae
Author: jamiesensei <jamiesensei>
Date:   Wed, 22 Aug 2007 16:22:06 +0800
Tag:    v1.9.0

MDL-10849 "During question bank upgrade, add course shortname to category name, if it is moved to the site level"

commit afb36bca448fc79c4a08714dd333451a16579417
Author: jamiesensei <jamiesensei>
Date:   Wed, 22 Aug 2007 12:28:26 +0800
Tag:    v1.9.0

MDL-10938. 'only strings from lang files can be used as feedback in environment check. Some way is needed to include data from custom check function - a $a param to pass to get_string'. Custom check for questions uses new functionality to print more complex strings as feedback.

commit 57dce727cd14055869dda3e8353ed9c0b9f8d2fc
Author: jamiesensei <jamiesensei>
Date:   Wed, 22 Aug 2007 12:19:04 +0800
Tag:    v1.9.0

fixed a spello in a string

commit 6d1083c52f540461bd306d47b58b0bb834f11399
Author: jamiesensei <jamiesensei>
Date:   Tue, 21 Aug 2007 14:55:48 +0800
Tag:    v1.9.0

fix for some xhtml syntax errors.

commit 56beb4e2629bf8296a35da5d17738e5688872542
Author: jamiesensei <jamiesensei>
Date:   Mon, 20 Aug 2007 19:12:11 +0800
Tag:    v1.9.0

removed some use of AS for table aliases in SQL.

commit a7f6dc55fa83399e06dbf4502e91be277810787c
Author: jamiesensei <jamiesensei>
Date:   Mon, 20 Aug 2007 18:58:11 +0800
Tag:    v1.9.0

Adding lang strings for new question capabilities and removing some old ones.

commit 688cc5d01c87b24cadd81cc86886b03a8b807ad3
Author: jamiesensei <jamiesensei>
Date:   Mon, 20 Aug 2007 11:36:07 +0800
Tag:    v1.9.0

Fix for MDL-10776 "Moodle Faulty navigation in questions categories when editing questions or exporting/importing categories"

commit 8a3b3e66bd82eaf957114836c8c8038665fb7346
Author: jamiesensei <jamiesensei>
Date:   Mon, 20 Aug 2007 10:55:27 +0800
Tag:    v1.9.0

MDL-10812 changed 'Modified' string to 'Last Saved' since as pointed out often someone might press the save button after viewing a question without making any modifications.

commit 88c8015ea0910a3180639eb2a6db30526239a5e4
Author: jamiesensei <jamiesensei>
Date:   Fri, 17 Aug 2007 18:50:52 +0800
Tag:    v1.9.0

fixing some problems with multichoice file link find and replace code for multichoice qtype.

commit 4119b7ba53eb6b1408e332dcb201300c9747c645
Author: jamiesensei <jamiesensei>
Date:   Fri, 17 Aug 2007 18:47:49 +0800
Tag:    v1.9.0

help file for new site files backup feature.

commit 863be1a95cb1327164ab8a47ce4b06f32404c566
Author: jamiesensei <jamiesensei>
Date:   Fri, 17 Aug 2007 18:03:18 +0800
Tag:    v1.9.0

Added a help button to the backup form.

commit 1a73a3d84ed6e079438e230d85145403d5a796e9
Author: jamiesensei <jamiesensei>
Date:   Fri, 17 Aug 2007 18:00:00 +0800
Tag:    v1.9.0

Fixes for some notices because of unitialized vars and elements that may not be present in older backup xml.

commit 7c1c94872e9e453dbb18c489539b5cfa12b88d29
Author: jamiesensei <jamiesensei>
Date:   Fri, 17 Aug 2007 17:53:00 +0800
Tag:    v1.9.0

Fix for notice on first page of restore.

commit 79bb7202001a96f8f31a60a249dd18cb65a9d2c9
Author: jamiesensei <jamiesensei>
Date:   Fri, 17 Aug 2007 09:06:02 +0800
Tag:    v1.9.0

Fixed MDL-10855 'Calculated question error: undefined stdClass::$nextpageparam' and some other calculated question bugs.

commit 610ef0930fab5fbabb8c281b87c3b7c068b0a502
Author: jamiesensei <jamiesensei>
Date:   Thu, 16 Aug 2007 18:44:07 +0800
Tag:    v1.9.0

oops. Removed stray die; that was in the code for debug purposes.

commit ba18b21d2ece55e5776237875045389c2a69cc15
Author: jamiesensei <jamiesensei>
Date:   Thu, 16 Aug 2007 13:25:00 +0800
Tag:    v1.9.0

Fix for MDL-10852 Cannot edit existing questions

commit ffba1f0bec537fc3815b79091f69bfa60f0cfd85
Author: jamiesensei <jamiesensei>
Date:   Thu, 16 Aug 2007 13:20:35 +0800
Tag:    v1.9.0

added some comments

commit 9f1017a0be550b9a20e733ae3dbde904e3ac35fb
Author: jamiesensei <jamiesensei>
Date:   Thu, 16 Aug 2007 13:19:33 +0800
Tag:    v1.9.0

correct logic error that broke caching.

commit 0cbddd850bfc88776d54b9203673c790c8f2019a
Author: jamiesensei <jamiesensei>
Date:   Wed, 15 Aug 2007 19:36:01 +0800
Tag:    v1.9.0

MDL-10857 broken link in navlinks for question bank pointing to mod/modname/view.php with cmid param instead of id param

commit f6ea3132c163d75132526bfce39732ad049e654a
Author: jamiesensei <jamiesensei>
Date:   Wed, 15 Aug 2007 19:08:37 +0800
Tag:    v1.9.0

small commenting change

commit 20f500dc4d23361585e996e2dd7922e75ab69665
Author: jamiesensei <jamiesensei>
Date:   Wed, 15 Aug 2007 19:04:35 +0800
Tag:    v1.9.0

Fix for MDL-10847  No categories showing in category tab when editing a quiz / questions on PHP 4

commit 00de7c984cc6ed38a7d8d818263cc710b97fcaf2
Author: jamiesensei <jamiesensei>
Date:   Tue, 14 Aug 2007 19:50:57 +0800
Tag:    v1.9.0

fix for notice about undefined urls property.

commit a54fd2dd4d6e91e420f8790c57f361ba3d3a8098
Author: jamiesensei <jamiesensei>
Date:   Tue, 14 Aug 2007 19:41:47 +0800
Tag:    v1.9.0

fix for notice about undefined urls property.

commit e7e62d45be8090f0c6e8279dd46e557243d6ac6e
Author: jamiesensei <jamiesensei>
Date:   Tue, 14 Aug 2007 12:22:05 +0800
Tag:    v1.9.0

Fix for MDL-10823 Access to question edit page denied from quiz preview screen.

commit af49b38948d9f8bd49884cddc3c344a5ac98d67a
Author: jamiesensei <jamiesensei>
Date:   Tue, 14 Aug 2007 10:56:43 +0800
Tag:    v1.9.0

small fix for breadcrumbs link

commit 9f877cb07250c62db928a73d3d42fb5b8d227e86
Author: jamiesensei <jamiesensei>
Date:   Tue, 14 Aug 2007 10:50:56 +0800
Tag:    v1.9.0

fix for MDL-10835 Results and Preview Tabs broken - requred param 'cmid' missing (for quiz with no questions)

commit 681666abe7c4717b8d0593b9cb74981ae3de0158
Author: jamiesensei <jamiesensei>
Date:   Mon, 13 Aug 2007 21:58:04 +0800
Tag:    v1.9.0

fix for  	 MDL-10826 ' Moodle Impossible to delete a course because of non-existent question_delete_activity() '

commit 8bdd8660bffaee3925f1d5e2b8fa0622445cd3b6
Author: jamiesensei <jamiesensei>
Date:   Mon, 13 Aug 2007 00:09:57 +0800
Tag:    v1.9.0

See http://moodle.org/mod/forum/discuss.php?d=77564#p345310 Questions link not showing up.

commit fd3772dc9456ff8d346013ca59e31276f466652a
Author: jamiesensei <jamiesensei>
Date:   Sun, 12 Aug 2007 23:07:08 +0800
Tag:    v1.9.0

MDL-10805 custom check was causing error on installation because dmllib functions are not available yet.

commit b36e36aa05081b9e1fee09b1f501ce9bc1ab6df1
Author: jamiesensei <jamiesensei>
Date:   Sun, 12 Aug 2007 21:57:57 +0800
Tag:    v1.9.0

removed all ASes from table aliases in question / quiz code - MDL-10344

commit ddaff15dfc0c2fc51fc27a33f55a54b2b726d59d
Author: jamiesensei <jamiesensei>
Date:   Fri, 10 Aug 2007 15:58:48 +0800
Tag:    v1.9.0

removing TODO type comment that was already done.

commit 070af8ed323d50bf2105fb0782202609f1e33f28
Author: jamiesensei <jamiesensei>
Date:   Fri, 10 Aug 2007 15:56:02 +0800
Tag:    v1.9.0

fixing reversion of lang string that happened during MOODLE_19_QUESTIONS merge

commit 515ed4c3ee1a03c9820f07f153ddc851a00902c4
Author: jamiesensei <jamiesensei>
Date:   Fri, 10 Aug 2007 06:44:14 +0800
Tag:    v1.9.0

merging MOODLE_19_QUESTIONS with HEAD

commit 271e6decdac9d9445c047a7d90cc98b7912cf1b6
Author: jamiesensei <jamiesensei>
Date:   Fri, 10 Aug 2007 05:51:09 +0800
Tag:    v1.9.0

merging MOODLE_19_QUESTIONS with HEAD

commit 3bee1ead40eae09709dfec2c6546938ed07613f5
Author: jamiesensei <jamiesensei>
Date:   Fri, 10 Aug 2007 05:50:59 +0800
Tag:    v1.9.0

merging MOODLE_19_QUESTIONS with HEAD

commit dfcdf0726bd3109a6a7af89304619ebc8637754b
Author: jamiesensei <jamiesensei>
Date:   Thu, 09 Aug 2007 23:05:15 +0800
Tag:    v1.9.0

fixed syntax error in last commit that fixes MDL-10768

commit 62f34fdb208c737c26af745f2c22496c4c1b0a47
Author: jamiesensei <jamiesensei>
Date:   Wed, 08 Aug 2007 11:29:29 +0800
Tag:    v1.9.0

fix for some notices in insert_category_ids function.

commit bb90bf3fb26da1096bfff558dbc57f166d237d48
Author: jamiesensei <jamiesensei>
Date:   Mon, 16 Jul 2007 14:04:20 +0800
Tag:    v1.9.0

when element is frozen should not escape html entities in htmleditor.

commit c0056e22270163bc7d627f72685c9f262b13b140
Author: jamiesensei <jamiesensei>
Date:   Fri, 13 Jul 2007 16:14:37 +0800
Tag:    v1.9.0

fix for MDL-10440 IE7 and IE6 on win xp error when changing "disable" state of "Start date"

commit df2c2310e52429584f5bf43b3ee46de19b10b13e
Author: jamiesensei <jamiesensei>
Date:   Thu, 12 Jul 2007 14:01:17 +0800
Tag:    v1.9.0

Reverted previous fix for  MDL-10382  Allow removing of elements with disabledIf conditions - "This fix has broken disabledIf in many forms. The problem is that if the dependentOn element is an element in a group then elementExists will return false."

commit 43914931f7cafa7cd52740091b753f1e0aa52482
Author: jamiesensei <jamiesensei>
Date:   Fri, 06 Jul 2007 12:03:51 +0800
Tag:    v1.9.0

validation can return an empty array() or true to indicate no errors. array() is preferred since then parent class validation functions can be chained. Changing  moodle_form validation method to return array() so that chaining works in question types. Shouldn't affect other forms code.

commit 7856a8c3840f72f5b47072314e2f1a0f11704c25
Author: jamiesensei <jamiesensei>
Date:   Sat, 30 Jun 2007 12:22:51 +0800
Tag:    v1.9.0

removing file that mistakenly was committed to HEAD

commit c28245d7e5e7a7d5b84bda659a1f9bb449537b60
Author: jamiesensei <jamiesensei>
Date:   Sat, 30 Jun 2007 11:50:52 +0800
Tag:    v1.9.0

test for questionlib on MOODLE_19_QUESTIONS branch

commit 20c55233c36d912e6a1930fb4a0846de312d9940
Author: jamiesensei <jamiesensei>
Date:   Fri, 29 Jun 2007 22:19:22 +0800
Tag:    v1.9.0

small change to make icons easier to override in child classes.

commit 16368d38a4397d0835c1af5e51fdc1cb55f53588
Author: jamiesensei <jamiesensei>
Date:   Fri, 22 Jun 2007 19:02:45 +0800
Tag:    v1.9.0

making environment colours css selector refer to table class instead of body id. So that colours show up on other pages besides admin page.

commit 53a0367d10fc4327a1a6f4dc4463bcb8d1b1fed6
Author: jamiesensei <jamiesensei>
Date:   Wed, 20 Jun 2007 14:32:26 +0800
Tag:    v1.9.0

added styles to install.php for colours for environment table

commit 770fef0a3c2ecb1afa8e2be7f6b480686398282f
Author: jamiesensei <jamiesensei>
Date:   Tue, 19 Jun 2007 23:52:19 +0800
Tag:    v1.9.0

MDL-10168 improvements to display of results from environment checks

commit 4579011918465dcbcd2c25de17e3a552881f0d09
Author: jamiesensei <jamiesensei>
Date:   Tue, 19 Jun 2007 23:21:27 +0800
Tag:    v1.9.0

elaborated phpdoc comment slightly for  doc_link

commit 84e3d2ccf58d83f6ebed1f179e765c4626217d6b
Author: jamiesensei <jamiesensei>
Date:   Tue, 19 Jun 2007 22:44:02 +0800
Tag:    v1.9.0

refactored page_doc_link into two functions. doc_link returns a link to docs. page_doc_link returns the link for this page.

commit dc1f768351a5d4f4c541b4f6fbe1c12e02c7e2d5
Author: jamiesensei <jamiesensei>
Date:   Tue, 29 May 2007 14:27:38 +0800
Tag:    v1.9.0

reverting commit 1.889 "added another parameter to moodle_url out, out_action and get_query_string so that developer can output url with query string joined by '&' and not '&amp;'. &amp; breaks redirect on IE."  It turned out to be unnecessary.

commit 24a905f98b86e147e5d366181d1dd028005d0830
Author: jamiesensei <jamiesensei>
Date:   Tue, 29 May 2007 14:14:09 +0800
Tag:    v1.9.0

fixed bug in parsing urls

commit d65cb30f630d69f13c7a3bedf2f43d12ef130c17
Author: jamiesensei <jamiesensei>
Date:   Tue, 29 May 2007 14:14:09 +0800
Tag:    v1.9.0

reverting last commit "added another parameter to moodle_url out, out_action and get_query_string so that developer can output url with query string joined by '&' and not '&amp;'. &amp; breaks redirect on IE."  It turned out to be unnecessary.

commit 099f7fb6ca591e05a1f5d038698a13b9a6998be4
Author: jamiesensei <jamiesensei>
Date:   Mon, 28 May 2007 22:25:40 +0800
Tag:    v1.9.0

added another parameter to moodle_url out, out_action and get_query_string so that developer can output url with query string joined by '&' and not '&amp;'. &amp; breaks redirect on IE.

commit b1a61961aad535d6c53516fbc2761856df9a7b7a
Author: jamiesensei <jamiesensei>
Date:   Mon, 28 May 2007 22:21:09 +0800
Tag:    v1.9.0

MDL-9745 "Checkboxes badly lined up in forms lib, e.g. "students may review" settings on quiz settings screen." Reverted previous fix for similar problem MDL-7779 as the fix for MDL-7779  causes worse problem MDL-9745 with form elements in groups. Second part of commit in HEAD, missed a bit in HEAD.

commit 5eb1924f010d741d0ba70a547fb73598d55487dc
Author: jamiesensei <jamiesensei>
Date:   Mon, 28 May 2007 20:17:40 +0800
Tag:    v1.9.0

MDL-9745 Checkboxes badly lined up in forms lib, e.g. "students may review" settings on quiz settings screen. Reverted previous fix for similar problem MDL-7779 as the fix for MDL-7779  causes worse problems with form elements in groups.

commit 3673f6bc3b2243b268f96c072c940a71618821eb
Author: jamiesensei <jamiesensei>
Date:   Mon, 28 May 2007 08:50:11 +0800
Tag:    v1.9.0

added more phpdoc comments for hardFreezeAllVisibleExcept

commit 56015454ddd29caa2a18434a96166d24df389988
Author: jamiesensei <jamiesensei>
Date:   Mon, 28 May 2007 08:46:11 +0800
Tag:    v1.9.0

new method hardFreezeAllVisibleExcept

commit 9368476553bc4b0ad5333343be92006ac92c6c3f
Author: jamiesensei <jamiesensei>
Date:   Sun, 27 May 2007 19:19:04 +0800
Tag:    v1.9.0

MDL-9734 fix for clean_param PARAM_LOCALURL bug

commit 64360ee7b551897ae000b8e31a45ec21abbc53d8
Author: jamiesensei <jamiesensei>
Date:   Sun, 27 May 2007 13:01:51 +0800
Tag:    v1.9.0

made hardFreeze work properly for a whole form. New paramater in moodleform constructor 'editable' defaults to true. If true then display form as normal. If false then hardFreeze whole form. Now displays form without an submit buttons. If form is hard frozen no data is ever passed to get_data.

commit 7d8ea286680c2e341c4c82709da425b428460f52
Author: jamiesensei <jamiesensei>
Date:   Sun, 27 May 2007 12:53:02 +0800
Tag:    v1.9.0

MDL-9891 new 'clonepermissionsfrom' key in access.php

commit 61d9b9fc5d63bd179443a5189f66ce98322f47e3
Author: jamiesensei <jamiesensei>
Date:   Fri, 25 May 2007 13:49:51 +0800
Tag:    v1.9.0

oops. reverting changes which shouldn't have been committed to HEAD.

commit bdc66c2a5dd0e15ace278cf3cc2d9c4f7e607a6d
Author: jamiesensei <jamiesensei>
Date:   Fri, 25 May 2007 12:59:17 +0800
Tag:    v1.9.0

fix for category.php lists. Slight change in listlib api caused breakage.

commit a69dacfd48218743dd39f8fcca36f00e5d04ffb7
Author: jamiesensei <jamiesensei>
Date:   Wed, 23 May 2007 08:59:36 +0800
Tag:    v1.9.0

reverting back to version 1.2. Accidentally committed version 1.3 in HEAD.

commit cd26d8e047fddda09f32b6e06f0aa5c5186d5c96
Author: jamiesensei <jamiesensei>
Date:   Tue, 22 May 2007 18:09:22 +0800
Tag:    v1.9.0

MDL-9857 "more options in print_context function"

commit 9ae3af87aef7243b53b638eeb67be34898f65838
Author: jamiesensei <jamiesensei>
Date:   Tue, 22 May 2007 00:11:17 +0800
Tag:    v1.9.0

MDL-9856 allow passing moodle_url to moodle_form constructor as action instead of passing url as a string

commit d92b9d91400f4a026dbb22b2c8a4f4af4eba2c3e
Author: jamiesensei <jamiesensei>
Date:   Mon, 21 May 2007 17:26:17 +0800
Tag:    v1.9.0

new sql to fetch question counts for categories all in one sql query. Question count now included in drop down box.

commit 83bc64dba48e99ca28e8330cf00dd5d37ac65803
Author: jamiesensei <jamiesensei>
Date:   Mon, 21 May 2007 01:05:27 +0800
Tag:    v1.9.0

adding quoting to output of hidden params in moodle_url

commit 3a3c454ede62ad5b1ce515b39a8861df30c45e4a
Author: jamiesensei <jamiesensei>
Date:   Mon, 21 May 2007 00:17:48 +0800
Tag:    v1.9.0

UI for editing questions changed to support sharing questions in multiple contexts. Also changed import / export and category editing form to use formslib.

commit fae60ee3d348fdad35ad04072d3866bbfde414e4
Author: jamiesensei <jamiesensei>
Date:   Sun, 20 May 2007 22:05:49 +0800
Tag:    v1.9.0

small additions to comments on moodle_url

commit b0bc5219d88fcce30053709f9eb9c5d2d39457c3
Author: jamiesensei <jamiesensei>
Date:   Sun, 20 May 2007 21:59:58 +0800
Tag:    v1.9.0

some changes to listlib to make it possible to chain the paging of several lists together that are displayed on the same page, so that paging can work across several lists

commit 305f5b4b1d5328d8623043ef46348c66898ebebd
Author: jamiesensei <jamiesensei>
Date:   Sun, 20 May 2007 19:56:57 +0800
Tag:    v1.9.0

removed unecessary sesskey hidden param. sesskey is automatically included and processed in formslib forms. Removed redundant validation method.

commit f161729e21570233298768d633f5d005f6e70457
Author: jamiesensei <jamiesensei>
Date:   Sun, 20 May 2007 19:48:02 +0800
Tag:    v1.9.0

new element for formslib selectgroups is a select drop down with options grouped into optgroups

commit 7bd434264243fb2675c5daf7fa25fa1a8350d62b
Author: jamiesensei <jamiesensei>
Date:   Sun, 20 May 2007 19:20:49 +0800
Tag:    v1.9.0

small fix for uninitialised var

commit 850e85b7b29b6d550a04059c11f2edd26ed595ed
Author: jamiesensei <jamiesensei>
Date:   Sat, 12 May 2007 06:22:14 +0800
Tag:    v1.9.0

some changes to make it easier to override editing icons in child classes and to make several lists work well with each other on the same page.

commit 85c375c3f8301d8291a1a2ead3a9063a9af0f389
Author: jamiesensei <jamiesensei>
Date:   Tue, 08 May 2007 00:57:23 +0800
Tag:    v1.9.0

added function callbacks for module specific controls to question bank.

commit 0de94538ee54fe2fa09aab769a0fc31c60ebbadc
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 23:38:02 +0800
Tag:    v1.9.0

fixed links on edit icons so that they return to question bank page.

commit 7cd4fda6e7819e5cad1bd726b0bba429bc78c9d3
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 23:16:07 +0800
Tag:    v1.9.0

changing param type for returnurl to PARAM_LOCALURL

commit 64eeaf47536a106fca335e70d9a0f0bb636701f8
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 15:13:14 +0800
Tag:    v1.9.0

removed all session fromurl and returnurl stuff from question bank editing code. Returnurls are now passed as get/post params.

commit f86c2c84b1f0b94108600b2be0c83a6f83474c7d
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 15:08:41 +0800
Tag:    v1.9.0

fixed error in import.php category object fetching logic

commit 561fe61df30268869a4bf5782d99b7d9ebd0775c
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 14:35:33 +0800
Tag:    v1.9.0

return to the proper page after editing a question in the question bank.

commit d340fde6c47ba873922e3c5f229cbb7e95d6aa1d
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 13:57:49 +0800
Tag:    v1.9.0

oops. Accidentally committed a change in default no of category items displayed which I'd changed for debug purposes. Reverting change.

commit 986effb653b7f4d1958de36d55b984974a348898
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 13:53:20 +0800
Tag:    v1.9.0

pass the category list page param from page to page in question bank editing pages.

commit 400edee1ec672cf7eeca468d436337e0e17f5f0a
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 13:30:06 +0800
Tag:    v1.9.0

always make sure that page param is in the pageurl

commit 81be5cdec30f6ce19db3186ce012d144210c5b0f
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 13:25:44 +0800
Tag:    v1.9.0

added argument to constructor to specify the name of the page parameter used to pass the page no of the list. Default to 'page'

commit a4758a8632b7a5480f34bfaf1d738949128a5053
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 13:12:09 +0800
Tag:    v1.9.0

require_login is in 'question_edit_setup' we don't need to call it again here.

commit 7bc26c8f6df85c14f008265e8b85bba49135dba6
Author: jamiesensei <jamiesensei>
Date:   Mon, 07 May 2007 12:55:55 +0800
Tag:    v1.9.0

changes to pass category id from page to page in question bank editing.

commit 36e298bc5820c9d2a6b8f8fae4bcb61f23cf5f2b
Author: jamiesensei <jamiesensei>
Date:   Fri, 04 May 2007 18:46:33 +0800
Tag:    v1.9.0

removed more session stuff from question list and category form in question bank display code

commit 9ab3847595f8eb3de55407b75cfcbb7aca3b35cb
Author: jamiesensei <jamiesensei>
Date:   Fri, 04 May 2007 16:33:28 +0800
Tag:    v1.9.0

tightening up reg expressions used for submitted data a bit

commit 1d88985787dbede9a7aacbb9847752880129d892
Author: jamiesensei <jamiesensei>
Date:   Fri, 04 May 2007 14:09:37 +0800
Tag:    v1.9.0

removing TODO comment as the question.php script no longer treats quiz as special.

commit c65b63deb61ff2fc110702c5d15e327c88449948
Author: jamiesensei <jamiesensei>
Date:   Fri, 04 May 2007 13:51:59 +0800
Tag:    v1.9.0

removed global var declaration for var that wasn't used in function

commit 9ab75b2bcc2539abd873ab1e292691afc33bb935
Author: jamiesensei <jamiesensei>
Date:   Fri, 04 May 2007 13:47:59 +0800
Tag:    v1.9.0

passing cmid to question.php and removed use of session modform var. Question.php now independent of quiz module. Small improvement to displayed breadcrumbs.

commit e744ebba7bea7550202da95332554aa4591943b6
Author: jamiesensei <jamiesensei>
Date:   Fri, 04 May 2007 13:45:33 +0800
Tag:    v1.9.0

added a param to moodle_url constructor to provide params as an array just as a convenience to quickly construct a url with an array of params.

commit e22618dd73a529e36208a92abb1d10400716f3a8
Author: jamiesensei <jamiesensei>
Date:   Fri, 04 May 2007 13:30:03 +0800
Tag:    v1.9.0

deleted redundant method which was just calling the parent method.

commit b07b4bd2462371e905cea8f38782a1c9859e8e0d
Author: jamiesensei <jamiesensei>
Date:   Thu, 03 May 2007 18:38:35 +0800
Tag:    v1.9.0

removed use of session for reordertool and show page breaks. Reordertool and show page breaks params are now passed from page request to page request only for page requests for quiz/edit.php

commit b72ff476856a4496d9dee0a78fc08b5b64ffed36
Author: jamiesensei <jamiesensei>
Date:   Thu, 03 May 2007 18:10:01 +0800
Tag:    v1.9.0

moved question sort order and paging params to be passed from page to page as get params instead of being saved in session var.

commit fcdb06c470a2b7023b0db1b46244d631e783be6c
Author: jamiesensei <jamiesensei>
Date:   Thu, 03 May 2007 18:03:59 +0800
Tag:    v1.9.0

change to print_paging_bar function to optionally support the use of a moodle_url object as a parameter instead of a string.

commit 86909ce047e631102824ea1d659ea9eff0f653e8
Author: jamiesensei <jamiesensei>
Date:   Thu, 03 May 2007 13:17:07 +0800
Tag:    v1.9.0

small fix to get question code to return to correct place after creating a new question.

commit 360e503e6e2da6a7e8f3e6ad05916aa8db7ee64f
Author: jamiesensei <jamiesensei>
Date:   Thu, 03 May 2007 12:34:53 +0800
Tag:    v1.9.0

MDL-9644 new class 'moodle_url' in weblib.php to handle constructing a url. It would internally stores params as an array and have methods to manipulate the array. The class can also output the params as hidden fields in a form or as a url with get params appended.

commit 71e0eda8f7991dac52b3430f88018962d13e2049
Author: jamiesensei <jamiesensei>
Date:   Mon, 30 Apr 2007 14:48:57 +0800
Tag:    v1.9.0

standardizing params for edit question page. All pages now use courseid instead of course or id.

commit efe839dc122ba85e51323dd1e5556a17685ca17f
Author: jamiesensei <jamiesensei>
Date:   Fri, 27 Apr 2007 19:27:57 +0800
Tag:    v1.9.0

Removed 'edit category' redundant button

commit 1f21cc88f75a4a4623f5997f3fd3cee4ee40bc93
Author: jamiesensei <jamiesensei>
Date:   Fri, 27 Apr 2007 13:55:57 +0800
Tag:    v1.9.0

removed global vars declaration for var not used in method.

commit f3ba642c5cb20de0c96ff2780cc80c0bef8d9935
Author: jamiesensei <jamiesensei>
Date:   Fri, 27 Apr 2007 13:48:12 +0800
Tag:    v1.9.0

forget to pass page parameter during redirects.

commit 0d32a25dd5c611f5cf281940fb22ce721f7f71af
Author: jamiesensei <jamiesensei>
Date:   Fri, 27 Apr 2007 13:36:03 +0800
Tag:    v1.9.0

oops. small mistake with copyright notice.

commit a982d582c4f5918cf5b1c1c10961a0dba74873c5
Author: jamiesensei <jamiesensei>
Date:   Wed, 25 Apr 2007 22:06:37 +0800
Tag:    v1.9.0

Added redirects after all actions. Added methods to category class to generate a url from an array of parameters stored in the object. Cleaned up some old redundant code for actions now processed in list class.

commit dac786f300cd35b7d40fafe29399d36435c068c8
Author: jamiesensei <jamiesensei>
Date:   Thu, 19 Apr 2007 16:57:54 +0800
Tag:    v1.9.0

MDL-9437 lib/listlib.php for displaying and editing a nested list of items.  And changes to question\category.php to use the new lists.

commit 8a3719f5176bdec14088d141a3340fd6f4790a20
Author: jamiesensei <jamiesensei>
Date:   Thu, 12 Apr 2007 22:59:32 +0800
Tag:    v1.9.0

making notifytiny style a little bigger

commit 632b88d5a27542acc4019e9d884426dbfb4e01bb
Author: jamiesensei <jamiesensei>
Date:   Fri, 06 Apr 2007 14:01:11 +0800
Tag:    v1.9.0

see MDL-8886.

commit db8e700b0a7d60ad253845b407da43973fdd0e9d
Author: jamiesensei <jamiesensei>
Date:   Wed, 04 Apr 2007 18:16:22 +0800
Tag:    v1.9.0

fixes MDL-9195 mform->hardFreeze() doesn't remove id attribute of label for checkbox

commit 24e25bc124025a4dac6c461191a30305e45521e7
Author: jamiesensei <jamiesensei>
Date:   Tue, 13 Mar 2007 23:50:22 +0900
Tag:    v1.9.0

small change to fix MDL-8788 which was a problem with non unique header element names

commit 120e5cbf4ca36ee2f30f37d0df6d409305064555
Author: jamiesensei <jamiesensei>
Date:   Thu, 01 Mar 2007 16:45:22 +0900
Tag:    v1.9.0

fiexs MDL-8659   : Impossible to create Cloze type question in Moodle 1.8 beta

commit f5efac7b85d4894f2596044e1ded6389f1d50c42
Author: jamiesensei <jamiesensei>
Date:   Mon, 26 Feb 2007 15:38:47 +0900
Tag:    v1.9.0

fixes  (MDL-8449) Quiz start and close times should allow the teacher to select a time as well as a date.