Commit graph

35710 commits

Author SHA1 Message Date
dongsheng
4314c0bcf5 "MDL-14949, add a new capablity chat:talk to enable readonly chat user, merged from 1.9" 2008-12-16 04:58:40 +00:00
moodlerobot
c964051fee Updated the HEAD build version to 20081216 2008-12-15 23:52:47 +00:00
moodlerobot
98fbff4d36 Automatic installer.php lang files by installer_builder (20081216) 2008-12-15 23:26:14 +00:00
stronk7
c362878ed7 MDL-17645 delete_records_list - Tidied a bit return values. Fix behaviour when no values are passed + new dml tests for all *_list() functions. 2008-12-15 21:41:09 +00:00
stronk7
a243ffeb07 MDL-17599 scheduled backup: add support for grade history setting + minor XML formatting. Merged from 19_STABLE 2008-12-15 21:35:47 +00:00
tjhunt
212235d3e2 accesslib: MDL-17647, MDL-17648 and MDL-17649 Bug fix, improvement and unit test.
MDL-17647 was referring to moodle/site:candoanything insstead of moodle/site:doanything

MDL-17648 Let get_users_by_capability take an array of capabilities, like has_any_capability

MDL-17649 get_users_by_capability must have unit tests (HEAD only).

The unit tests were briefly working (apart from the system context, which I had to set up by hand in the test contexts table). Then I made the mistake of trying to upgrade the test tables, and it all went horribly wrong (MDL-17644).
2008-12-15 06:22:18 +00:00
tjhunt
081cce7325 forum subscriptions: MDL-14876 - followup - use the right table prefix on column names to avoid an ambiguous column name error. 2008-12-15 06:08:51 +00:00
tjhunt
b1bc126319 unit tests: MDL-17646 Arrgh! edited the wrong file after making testsimpletestlib.php by copying testaccesslib.php! 2008-12-15 03:08:22 +00:00
tjhunt
9e8c801714 Flatfile enrolment: MDL-11418 SQL error. Thanks to Patrick Pollet.
I don't know exactly how this works, but it looks like a good fix to me, so committing.
2008-12-15 02:53:39 +00:00
tjhunt
821e4ecf16 unit tests: MDL-17646 Helper functions for loading and cleaning up test data. 2008-12-15 02:39:55 +00:00
tjhunt
0e8e23cce6 dml: MDL-17645 New database method delete_records_list. 2008-12-15 02:13:11 +00:00
moodlerobot
464f3d8387 Updated the HEAD build version to 20081215 2008-12-14 23:52:13 +00:00
piers
65478eea3c MDL-16810 - amend upgrade process to preserve config values where possible. thanks for pointer Tim. 2008-12-14 23:45:54 +00:00
moodlerobot
0c2d4e934f Automatic installer.php lang files by installer_builder (20081215) 2008-12-14 23:25:50 +00:00
jonathanharker
078c1134bf MDL-17548 MNET: Fix email links for sites with path component in wwwroot
Where Moodle sites had a path in their wwwroot, the MNET function that
forced remote users to go via their identity provider (to make sure they
were logged in) previously directed the user back to a URL like
contentprovider.com/moodle/moodle/mod/forum/view.php?f=7 where there
should only be one /moodle in the middle of the URL.
2008-12-14 22:50:22 +00:00
jonathanharker
e6e13284f9 MDL-16875 New Moodle setting - sessioncookiedomain
Added new sessioncookiedomain setting to session handling section.
 * allows you to change the domain that the Moodle cookies are available
   from. This is useful for Moodle customisations (i.e. Squirrelmail SSO
   or enrolment plugins) that need to share Moodle session information
   with a web application on another subdomain.
 * Will NOT work if the moodle host does not have a domain - i.e. just a
   hostname, e.g. 'localhost' or 'myhostname'. Needs a FQDN
 * Currently the setting is set to PARAM_TEXT length 50 since PARAM_HOST
   does not allow a leading dot e.g.  '.mydomain.com'
 * TODO: do we make up a new PARAM_COOKIEDOMAIN which is the same as
   PARAM_HOST but allows leading dots? Using PARAM_HOST and prepending a
   dot may not always be desirable.
2008-12-14 22:28:39 +00:00
tjhunt
acf149ad15 quiz: MDL-17578 Review quiz_get_view_actions and quiz_get_post_actions. 2008-12-14 13:32:45 +00:00
moodlerobot
fe5612c3c6 Updated the HEAD build version to 20081214 2008-12-13 23:51:36 +00:00
moodlerobot
161f9b5d40 Updated the HEAD build version to 20081213 2008-12-12 23:52:55 +00:00
moodlerobot
54d778ddcd Automatic installer.php lang files by installer_builder (20081213) 2008-12-12 23:26:26 +00:00
skodak
1a5b427e44 MDL-17589 fixed handling of missing caps in admin tree; merged from MOODLE_19_STABLE 2008-12-12 10:50:25 +00:00
tjhunt
83f0fef567 questions manual grading: MDL-15147 refine the logic for distinguishing '' and 0, so you can grade an essay 0 without making a comment, but also, grade some, but not all student's work in the manual grading report. 2008-12-12 09:00:11 +00:00
tjhunt
e285b6a8b6 quiz info page: MDL-9542 refix: overridden grades in the gradebook not visible to students in the quiz UI, 2008-12-12 07:24:47 +00:00
tjhunt
7028ab335d match qtype: MDL-17326 backup and restore problems
* The shuffleanswers options was not backed up or restored.

* Responses were not properly recoded on restore.
2008-12-12 06:45:07 +00:00
tjhunt
2f37e1083b course categories: fix typo introduced when fixing MDL-10801 2008-12-12 06:19:01 +00:00
dongsheng
73c763b75d "MDL-14129, update forum module language file" 2008-12-12 05:53:48 +00:00
dongsheng
771dc7b298 "MDL-14129, fix error() in moodle2" 2008-12-12 05:45:43 +00:00
dongsheng
60e40dda6c "MDL-14129, remove the rest error() in moodle2" 2008-12-12 04:53:32 +00:00
jonathanharker
3b8c248237 MDL-17549 auth/radius: add CHAP and MSCHAP auth support, detect PHP extension
* Added support for CHAP and MSCHAP authentication schemes
       contributed by Stanislav Tsymbalov http://www.tsymbalov.net/
       original code at http://sourceforge.net/projects/moodleradius/
     * Tweak the detection of PHP RADIUS extension and Pear code
     * Update the warning notices to use more Moodly CSS classes

    lib/pear: Add RADIUS and CHAP PEAR libs

     * Add PEAR Auth_RADIUS and Crypt_CHAP packages to lib/pear


Author: Jonathan Harker <jonathan@catalyst.net.nz>
2008-12-12 04:44:53 +00:00
tjhunt
299d9fb834 matching qtype: MDL-17496 With filterall and multilang, the contents of the dropdowns was not being properly filtered
This was caused becuse the solution to MDL-9005 was not quite right.
2008-12-12 04:39:38 +00:00
tjhunt
be8563b63a numerical and shortanswer question types: problems with compare_responses and test_response.
MDL-15315 The previous fix for this issue with wildcard answers in the item analysis report caused the following two regressions. This patch fixes it properly.

MDL-17247 This is basiclly pointing out the weridness in the previous fix and gave some useful clues as to a proper solution. Thanks Oleg.

MDL-17610 This was a report of a problem with each attempt builds on last, with a shortanswer question, where the sutdent's response contains a '.

Also, lots of unit tests to try to ensure the new code is right.
2008-12-12 03:48:39 +00:00
dongsheng
f77b3caa37 "MDL-14129, update language file for feedback module" 2008-12-12 03:02:16 +00:00
dongsheng
cf238eaf3d "MDL-14129, fix error() in feedback module" 2008-12-12 03:01:00 +00:00
tjhunt
47ceac47e4 questionlib: clarify a comment. 2008-12-12 02:50:36 +00:00
dongsheng
12e57b92ea "MDL-14129, fix error() in forum module" 2008-12-12 02:30:56 +00:00
moodlerobot
9558f068a0 Updated the HEAD build version to 20081212 2008-12-11 23:52:38 +00:00
moodlerobot
ab38ec6b5c Automatic installer.php lang files by installer_builder (20081212) 2008-12-11 23:26:04 +00:00
danmarsden
07ee03ce04 missed a comma:MDL-17612 2008-12-11 21:36:55 +00:00
danmarsden
411928890e fix typo, improve text a bit:MDL-17612 2008-12-11 21:34:40 +00:00
skodak
9d4e4c3da0 MDL-17611 removing XSS risk from mod/feedback:complete, because this capability is meant to be allowed in student roles 2008-12-11 18:06:01 +00:00
stronk7
b0126ac9da MDL-17009 Restore of mnet users: Fix incorrectly named MNET_EXTERNALUSERS. Merged from 19_STABLE 2008-12-11 16:40:09 +00:00
tjhunt
04c5310674 course search: MDL-10801 Search terms were not being highlighted consistently in the results. 2008-12-11 10:47:48 +00:00
tjhunt
9289e4c90e weblib: MDL-17606 Make the highlight function better, with unit tests. 2008-12-11 10:33:57 +00:00
tjhunt
92f008465c admin tree: MDL-10047 and MDL-13104 weird things happen when you turn editing on and off.
That was becuase not enough information was being passed in for the blocks editing controls to construct the right URL to reload the page.

It is also now possible for admin external pages to add some UI next to the turn blocks editing on/off button. For example, when you are editing the list of course catgories, the turn editing off button is now in the right place.
2008-12-11 09:21:41 +00:00
tjhunt
a90d7cf93d roles ui: Fix notices and XHTML strict. 2008-12-11 09:08:20 +00:00
tjhunt
8d8d0bfaae forum subscriptions: MDL-14876 user of deprecated functions was breaking managing subscribers.
This was visible when, for example, unusual role definitions meant that someone could access a forum without being enrolled in a course.

Note that one of the places that was previously broken was front page forums. Since subscribers.php does not do paging at all, the fact that I have fixed this bug makes this page dangerous on large sites. A proper solution will have to wait until bug 17550 is fixed in HEAD.

This also fixes a minor problem introduced by MDL-12979.
2008-12-11 07:01:57 +00:00
tjhunt
3c573960ec question bank: MDL-14376 Errors deleting a course containing Cloze questions.
(For some reason, this only seemed to cause problems on MySQL.)
2008-12-11 05:31:33 +00:00
dongsheng
94b8568628 "MDL-16954, get rid of remote_addr notice on cli, set ip = 0.0.0.0 in mdl_log table when accessed from cli, merged from 1.9" 2008-12-11 05:18:17 +00:00
tjhunt
bf14070fa7 multianswer qtype help: Fix HTML errors. 2008-12-11 05:14:34 +00:00
tjhunt
f932b81953 matching qtype: MDL-14420 Could not use '0' as a question stem. Oops, more tests need to be corrected. 2008-12-11 05:01:37 +00:00