Commit graph

52167 commits

Author SHA1 Message Date
Petr Skoda
5c2abc463f MDL-31053 fix invalid context preloading in get_user_capability_course() 2012-01-19 18:35:35 +01:00
Petr Skoda
a75386fba6 MDL-31124 reinstroduce accidentally removed restore code for 1.9 backups 2012-01-19 18:35:35 +01:00
Mary Evans
7a00d6cbc6 MDL-31144-fixes hidden Navigation block menu items when docked 2012-01-19 18:35:35 +01:00
Dan Poltawski
8e41bae41e MDL-29091 quiz - switch to use moodle_url::out_as_local_url 2012-01-19 18:35:35 +01:00
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
sam marshall
ea47046689 MDL-31153 File manager drag and drop English text improvement 2012-01-19 14:49:21 +00:00
sam marshall
d67e4821ab MDL-31122 Navigation: Do not show week in navigation if it contains only labels 2012-01-19 14:46:03 +00:00
sam marshall
a2c5766674 MDL-31121 File resource: add options to display file type and size 2012-01-19 12:52:38 +00:00
Eloy Lafuente (stronk7)
f6b4ec2b4a 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-19 13:34:40 +01:00
Eloy Lafuente (stronk7)
aae1ebe999 Merge branch 'install_master' of git://github.com/amosbot/moodle 2012-01-19 13:28:00 +01:00
Andrew Robert Nicols
c042fc819d MDL-31014 Allow for selection of a different displayformat when approving glossary entries 2012-01-19 09:39:46 +00:00
Andrew Robert Nicols
2f76f1019e MDL-31242 Prevent redefinition of MOODLE_INTERNAL when loading multiple YUI modules from Moodle 2012-01-18 15:38:55 +01:00
Andrew Robert Nicols
7aefaa91c9 MDL-31245 Add missing 'icon' class to highlight button in topics format 2012-01-18 14:12:09 +00:00
Eloy Lafuente (stronk7)
7fb7e9835a MDL-31006 revert partially @ get_config()
The change from null to stdClass() in get_config() was leading to:

1) unit tests not passing.
2) non-equivalent evaluation in conditions (null evals false,
   stdClassi() evals true)
2012-01-18 02:09:46 +01:00
AMOS bot
3e2c9a037f Automatically generated installer lang files 2012-01-18 00:31:32 +00:00
Petr Skoda
927010240f MDL-31006 some more PHP54 notices
PHP54 compatibility - PhpStorm IDE is the best tool for this kind of work!!
2012-01-18 01:17:25 +01:00
Petr Skoda
b85b25ebb8 MDL-31006 fix various notices in PHP54
PHP54 compatibility
2012-01-18 01:03:20 +01:00
Eloy Lafuente (stronk7)
ae924874d7 Merge branch 'w03_MDL-31213_m23_attributesmess' of git://github.com/skodak/moodle 2012-01-17 12:32:47 +01:00
Petr Skoda
48cbe43ded MDL-31213 fix incorrect modifications of quickforms attributes 2012-01-17 11:18:56 +01:00
Jerome Mouneyrac
2ada59b759 MDL-31077 REST server should return null if nothing fail and if the description function return null. 2012-01-17 15:37:27 +08:00
Eloy Lafuente (stronk7)
dc978ceb99 Merge branch 'w03_MDL-31053_m23_contextpreloading' of git://github.com/skodak/moodle 2012-01-17 02:18:46 +01:00
Eloy Lafuente (stronk7)
5f39437ae0 Merge branch 'w03_MDL-31127_m23_switchaccessinit' of git://github.com/skodak/moodle 2012-01-17 02:10:41 +01:00
Eloy Lafuente (stronk7)
679f37e5fe Merge branch 'w03_MDL-31161_m23_reqpluginnotice' of git://github.com/skodak/moodle 2012-01-17 02:05:53 +01:00
Eloy Lafuente (stronk7)
2176ed55e9 Merge branch 'MDL-31080' of git://github.com/timhunt/moodle 2012-01-17 01:58:51 +01:00
Eloy Lafuente (stronk7)
ec43e2267c Merge branch 'MDL-30408-master' of git://github.com/sammarshallou/moodle 2012-01-17 01:43:19 +01:00
Eloy Lafuente (stronk7)
4374d03158 Merge branch 'w03_MDL-31142_m23_slowiconv' of git://github.com/skodak/moodle 2012-01-17 01:36:03 +01:00
Eloy Lafuente (stronk7)
f58e09cbce Merge branch 'w03_MDL-31171_m23_blogattachment' of git://github.com/skodak/moodle 2012-01-17 01:31:59 +01:00
AMOS bot
c09ca45e96 Automatically generated installer lang files 2012-01-17 00:31:09 +00:00
Eloy Lafuente (stronk7)
479932c132 Merge branch 'w03_MDL-31170_m23_blogblocks' of git://github.com/skodak/moodle 2012-01-17 00:55:31 +01:00
Eloy Lafuente (stronk7)
325f3addf2 Merge branch 'MDL-3054' of git://github.com/nebgor/moodle 2012-01-16 12:24:35 +01:00
Eloy Lafuente (stronk7)
b3bc81893e Merge branch 'MDL-31196' of git://github.com/stronk7/moodle 2012-01-16 12:16:42 +01:00
Eloy Lafuente (stronk7)
273a432956 MDL-31196 quiz stats - fix version out of sync introduced recently
Pointing to current master version as requirement (2012020200)
2012-01-16 11:16:59 +01:00
Aparup Banerjee
b3f8559ebc MDL-3054 quiz : correcting currentpage to unsigned 2012-01-16 17:35:57 +08:00
Sam Hemelryk
d36b5d1177 Merge branch 'MDL-31095' of git://github.com/timhunt/moodle 2012-01-16 16:58:32 +08:00