51056 Commits

Author SHA1 Message Date
Dan Poltawski
34c0d46e94 MDL-29091 weblib - Introduce out_as_local_url() method to moodle_url
This can be used for passing around PARAM_LOCALURL's where necessary
stripping the wwwroot
2012-01-19 18:35:34 +01:00
Marina Glancy
a519d915bf MDL-31072: Added indexes to table role_assignments to speed up work in many-users-many-contexts environments 2012-01-19 18:35:34 +01:00
Marina Glancy
037ef684a3 MDL-31072: Fixed bug causing memory overflow for many-user systems:
when function find_users was supposed to be used for user validation but no userids were passed to it, it retrieved all users in the system.
This caused memory overflow on systems with too many users (like moodle.org).
Now we make sure that find_users is not called for validation if there is nobody to validate.

Also improved query inside find_users to make it work faster
2012-01-19 18:35:34 +01:00
Marina Glancy
41fb628f93 MDL-31060: removed unnecessary fields from query which also caused problems in MSSQL 2012-01-19 18:35:34 +01:00
Sam Hemelryk
702cb900c3 MDL-31025 navigation: When calling load_section_activities you must provide an array of activities not course_modinfo 2012-01-19 18:35:34 +01:00
sam marshall
90021290ee MDL-30408 Allow modules the choice to not appear on 'Add a...' lists
This is useful for modules which are created by the system and are not supposed to be created by users. There are various reasons for doing this in third-party modules.
2012-01-19 18:35:34 +01:00
Charles Fulton
4e2f2faf9f MDL-3054 record the current page of a quiz attempt 2012-01-19 18:35:34 +01:00
Tim Hunt
abd738223c MDL-31143 quiz reports: average grade of null causes php error. 2012-01-19 18:35:34 +01:00
Tim Hunt
f572ec93af MDL-31135 question instances report: 'All' option broken 2012-01-19 18:35:33 +01:00
Jonathon Fowler
00f265c4d9 MDL-31130 question bank: toggling show all / 20 per page broken. 2012-01-19 18:35:33 +01:00
Tim Hunt
425342ced4 MDL-31102 question preview: fix HTML validation errors. 2012-01-19 18:35:33 +01:00
Tim Hunt
92a5f438a7 MDL-31100 unit tests: don't mangle UTF-8 in failure messages. 2012-01-19 18:35:33 +01:00
Tim Hunt
45a81b1b10 MDL-31095 quiz editing: only set quiz->grade to 0 if really necessary.
It is only necessary when there are (non-preview) attempts. However,
after making this change we have to ensure users cannot start attempts
when ->grade > 0 and ->sumgrades = 0.

Display ->grade on the order and paging tab of edit.php, so it is clear
what is going on when you are using that tab.

Finally, improve the error message a student gets if they try to start a
quiz with no questions.
2012-01-19 18:35:33 +01:00
Tim Hunt
d20b34c726 MDL-31095 quiz: fix bug in quiz::has_questions. 2012-01-19 18:35:33 +01:00
Tim Hunt
31c5521442 MDL-31080 quiz editing, must be able to see and delete missing questions 2012-01-19 18:35:33 +01:00
Andrew Robert Nicols
8cbccb71da MDL-31040 Correct LTR language issue and inconsistency in display 2012-01-19 18:35:32 +01:00
Andrew Robert Nicols
a1dfe33a6e MDL-31018 Improve consistency of horizontal alignment across grade reports 2012-01-19 18:35:32 +01:00
Eloy Lafuente (stronk7)
60e99097e4 weekly release 2.3dev (blame stronk7 for 0202 mistake)
On 20120102 version was incorrectly bumped to 2012-02-02. So,
until then (< 1mo) we are going to be incrementing decimal digits
only and not date ones (first 8).
2012-01-12 11:34:20 +01:00
Eloy Lafuente (stronk7)
96f32207b6 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-01-12 11:24:39 +01:00
Eloy Lafuente (stronk7)
bdbe8f278e Merge branch 'w02_MDL-29684_m23_metaenrol' of git://github.com/skodak/moodle 2012-01-11 23:48:06 +01:00
Tim Hunt
ff05bb3166 MDL-26469 upgrade: cope with modules that do not set $module->cron. 2012-01-11 15:42:23 +00:00
Tim Hunt
3412cb4386 MDL-26469 upgrade: module cron setting not updated. 2012-01-11 14:04:09 +00:00
Tim Hunt
26756d9c6f MDL-30635 quiz cron: fixup - enable in version.php & fn name quiz_statistics_cron 2012-01-11 14:02:57 +00:00
AMOS bot
d7a6956444 Automatically generated installer lang files 2012-01-11 00:31:15 +00:00
Eloy Lafuente (stronk7)
4cd2b394ac Merge branch 'MDL-31101' of git://github.com/timhunt/moodle 2012-01-10 23:34:56 +01:00
Tim Hunt
d07f7be890 MDL-31101 format_string: Don't mangle < and > in strings like x < 1. 2012-01-10 14:52:19 +00:00
Rajesh Taneja
246c2cb8e5 MDL-30452 Repositories: Changed default capability on repos - Thanks Michael 2012-01-10 11:10:43 +01:00
Sam Hemelryk
7dd813b948 Merge branch 'MDL-24394' of git://github.com/timhunt/moodle 2012-01-10 14:30:32 +13:00
Sam Hemelryk
44577c96d0 Merge branch 'MDL-31019' of git://github.com/timhunt/moodle 2012-01-10 14:26:08 +13:00
Sam Hemelryk
6b37c2b093 MDL-31000 Added comment about the importance of repository array keys and hardened new dnd repository lookup 2012-01-10 12:21:24 +13:00
Sam Hemelryk
b098581488 Revert "MDL-31000 Respect sortorder of repositories when displaying the filepicker"
This change was reverted because the array keys need to be the id, existing code relies on this.
This reverts commit ef72c7942e69b41296989bbbd51a0d84ee4f636b.
2012-01-10 12:18:34 +13:00
Sam Hemelryk
7d1655a580 Merge branch 'dragdrop-for-master' of git://git.luns.net.uk/moodle 2012-01-10 11:52:09 +13:00
Eloy Lafuente (stronk7)
0a87f07a9b Merge branch 'wip-mdl-30608' of git://github.com/rajeshtaneja/moodle 2012-01-09 22:18:50 +01:00
Eloy Lafuente (stronk7)
528dbf2f7d Merge branch 'MDL-6102-master' of git://github.com/sammarshallou/moodle 2012-01-09 22:02:10 +01:00
Eloy Lafuente (stronk7)
fb051bf072 Merge branch 'MDL-30783_t2' of git://github.com/kiklop74/moodle 2012-01-09 21:47:16 +01:00
Tim Hunt
e73af46d4c MDL-24394 qtype_match: should be able to use multilang for the choices. 2012-01-09 18:05:06 +00:00
Davo Smith
f08fac7c89 MDL-29766 Add drag and drop upload to filemanager / filepicker elements 2012-01-09 17:27:32 +00:00
Tim Hunt
d89eb938fd MDL-31019 quiz secure mode. Fix typo that breaks submit. 2012-01-09 17:09:11 +00:00
sam marshall
487de67c48 MDL-6102 Default time format incorrectly has leading zeros on 12-hour times (e.g. 03:57 PM) 2012-01-09 11:38:59 +00:00
Aparup Banerjee
0970ac7dfa MDL-30583 Navigation : fixed string. 2012-01-09 14:35:38 +08:00
Aparup Banerjee
bb9546d0c7 Merge branch 'wip-MDL-30583-master' of git://github.com/samhemelryk/moodle 2012-01-09 13:44:36 +08:00
Aparup Banerjee
fcad996aab Merge branch 'w02_MDL-30718_m23_usertimedb' of git://github.com/skodak/moodle 2012-01-09 12:18:36 +08:00
Sam Hemelryk
2e40a94cff Merge branch 'w02_MDL-31005_m23_contextlevelname' of git://github.com/skodak/moodle 2012-01-09 16:12:24 +13:00
Sam Hemelryk
3506dfa22f MDL-30608 Blocks: Fixed block disappering from search page 2012-01-09 11:04:10 +08:00
Sam Hemelryk
7adf214012 Merge branch 'w02_MDL-30944_m23_cohortenrol' of git://github.com/skodak/moodle 2012-01-09 14:58:57 +13:00
Eloy Lafuente (stronk7)
7a9a12aa05 Merge branch 'w02_MDL-29046_m23_clidistrolib' of git://github.com/skodak/moodle 2012-01-09 02:31:02 +01:00
Eloy Lafuente (stronk7)
30c99be2f0 Merge branch 'MDL-30031' of git://github.com/bostelm/moodle 2012-01-09 02:14:20 +01:00
Sam Hemelryk
0e743da2b4 Merge branch 'w02_MDL-30717_m23_usercreated' of git://github.com/skodak/moodle 2012-01-09 14:03:10 +13:00
Sam Hemelryk
b07646fcf7 MDL-30928 lib: Fixed whitespace 2012-01-09 13:57:06 +13:00
Sam Hemelryk
1bec282c06 Merge branch 'w02_MDL-30928_m23_deletetimes' of git://github.com/skodak/moodle 2012-01-09 13:52:37 +13:00