Commit graph

62848 commits

Author SHA1 Message Date
Petr Škoda
18c4323019 MDL-39915 cleanup core_outputcomponents_testcase 2013-07-27 23:47:54 +02:00
Petr Škoda
be6ce11cae MDL-39915 cleanup core_moodlelib_testcase 2013-07-27 21:41:03 +02:00
Petr Škoda
e2262d70b0 MDL-39915 cleanup core_modinfolib_testcase 2013-07-27 20:28:37 +02:00
Petr Škoda
2988b725bc MDL-39915 cleanup core_messagelib_testcase 2013-07-27 19:39:47 +02:00
Petr Škoda
8603c6008c MDL-39915 cleanup core_medialib_testcase 2013-07-27 19:21:49 +02:00
Petr Škoda
8603082f64 MDL-39915 cleanup core_mathslib_testcase 2013-07-27 19:07:40 +02:00
Petr Škoda
ce14faf87e MDL-39915 cleanup core_markdown_testcase 2013-07-27 18:56:25 +02:00
Petr Škoda
aa2432331c MDL-39915 cleanup core_html_writer_testcase 2013-07-27 18:55:15 +02:00
Petr Škoda
cd51a94441 MDL-39915 cleanup core_htmlpurifier_testcase 2013-07-27 18:53:12 +02:00
Petr Škoda
c53adcaf46 MDL-39915 cleanup core_html2text_testcase 2013-07-27 18:50:42 +02:00
Petr Škoda
87288183a4 MDL-39915 cleanup core_grouplib_testcase 2013-07-27 18:48:18 +02:00
Petr Škoda
b8f26f4aa6 MDL-39915 cleanup core_gradelib_testcase 2013-07-27 18:39:33 +02:00
Petr Škoda
78d4a26004 MDL-39915 cleanup core_formslib_testcase 2013-07-27 18:38:34 +02:00
Petr Škoda
0e3f2732b2 MDL-39915 better not touch filter tests, just minor cleanup 2013-07-27 18:34:04 +02:00
Petr Škoda
1d987cb7d8 MDL-39915 cleanup core_filelib_testcase 2013-07-27 18:26:32 +02:00
Petr Škoda
474196f4a5 MDL-39915 cleanup core_externallib_testcase 2013-07-27 18:18:59 +02:00
Petr Škoda
e6e632ec6e MDL-39915 cleanup core_eventslib_testcase 2013-07-27 18:11:58 +02:00
Petr Škoda
96deb95070 MDL-39915 cleanup core_event_testcase 2013-07-27 18:06:55 +02:00
Petr Škoda
5b0d1b815f MDL-39915 cleanup core_environment_testcase 2013-07-27 18:01:17 +02:00
Petr Škoda
5c94af1496 MDL-39915 cleanup core_datalib_testcase 2013-07-27 18:00:15 +02:00
Petr Škoda
b8daadefb1 MDL-39915 cleanup core_csvclass_testcase 2013-07-27 14:04:13 +02:00
Petr Škoda
8bd5bfa220 MDL-39915 cleanup core_csslib_testcase 2013-07-27 13:59:56 +02:00
Petr Škoda
7db309f31b MDL-39915 cleanup core_coursecatlib_testcase 2013-07-27 13:28:33 +02:00
Petr Škoda
66871ac4cb MDL-39915 cleanup core_configonlylib_testcase 2013-07-27 13:14:41 +02:00
Petr Škoda
a2c8e7f423 MDL-39915 cleanup core_conditionlib_testcase 2013-07-27 13:11:36 +02:00
Petr Škoda
67846502de MDL-39915 cleanup core_componentlib_testcase 2013-07-27 12:58:02 +02:00
Petr Škoda
2058e79707 MDL-39915 cleanup core_component_testcase 2013-07-27 12:52:37 +02:00
Petr Škoda
82ff8e2937 MDL-39915 cleanup core_completionlib_testcase 2013-07-27 12:50:21 +02:00
Petr Škoda
5b59bc29d4 MDL-39915 cleanup core_collator_testcase 2013-07-27 11:32:08 +02:00
Petr Škoda
96a58e7e24 MDL-39915 cleanup core_code_testcase 2013-07-27 11:23:36 +02:00
Petr Škoda
3e654ea242 MDL-39915 cleanup core_blocklib_testcase 2013-07-27 11:21:10 +02:00
Petr Škoda
14e6c1e9cc MDL-39915 cleanup core_authlib_testcase 2013-07-27 11:13:28 +02:00
Petr Škoda
05fb92e9dd MDL-39915 cleanup core_admintree_testcase 2013-07-27 11:11:09 +02:00
Petr Škoda
4c9be79acd MDL-39915 cleanup core_accesslib_testcase 2013-07-27 11:10:58 +02:00
AMOS bot
7081e477f2 Merge branch 'master' into install_master 2013-07-27 00:43:08 +00:00
Jean-Michel Vedrine
d2fd7262af MDL-39404 Update question/format files to match codechecker standards 2013-07-26 21:32:34 +02:00
Petr Škoda
6763fde8d4 MDL-40891 prevent exceptions when creating directories in file store
Even if cache creation fails moodle should continue working.
2013-07-26 20:28:57 +02:00
Petr Škoda
e7451fb5bd MDL-40891 work around make_writable_directory() race condition
You will still get a "PHP Warning:  mkdir(): File exists" but that should not cause any problems on production sites.
2013-07-26 20:27:36 +02:00
Andreas Grabs
dd67e1bfc4 MDL-40775 mod_feedback - Undefined variable in feedback activity 2013-07-26 19:43:44 +02:00
Andreas Grabs
28001450d2 MDL-40746 mod_feedback - Feedback forms display oddly in Clean theme 2013-07-26 19:43:39 +02:00
Tim Hunt
68d2f6a008 MDL-35053 questions: question files outside an attempt.
Now update all the places that display files outside attempts to use the
new API.
2013-07-26 13:10:11 +01:00
Tim Hunt
181393aad2 MDL-35053 questions: question files outside an attempt.
Sometimes it is necssary to display parts of a question outside of an
attempt. For example for staff review. When displaying the question, we
need to handle images in the question text. In the past there was a
mechanism for this that could only cope with the question text.

This commit introduces a new method that can handle displaying any
part of the question content.

This commit intentionally does not upgrade the parts of the system that
use the mecanism. That is so that this commit can be used to demonstrate
that backwards-compatibility works. The next commit will upgrade the
callers.
2013-07-26 13:10:08 +01:00
Tim Hunt
9e1fe42150 MDL-40854 fix mod/...:view capabilities
Prior to the fix, if you did not have a capability like mod/page:view,
then you woulds still see the link to the Page activity in the course
section, but when you clicked on it, you would run into a
require_capability error.

It is a principle that we never show users a link to a page they are not
allowed to access, therefore, when users do not have mod/...:view, they
should not see the link on the course page.

This patch implements this in the cm_info class, in a similar way to how
access restrictions by groups works.

It does not assume that the mod/...:view capability exists. If the
capability does not exist, then users are not prevented from seeing the
link.
2013-07-26 11:44:43 +01:00
Tim Hunt
7302fbf696 MDL-40857 External tool: fix incorrect moodle_url usage. 2013-07-26 11:40:32 +01:00
Tim Hunt
c11ff4be69 MDL-40857 External tool (LTI) capabilitiy names confusing.
I have improved the names in the language file so that they actually say
what they do (based on my reading of the code). I have also added
comments to access.php explaining each capability.

I have corrected a few of the RISK in access.php which were wrong.

I have changed a couple of the archetypes so that guests cannot launch
LTI activities, and editing teachers cannot do editing things.
2013-07-26 11:40:28 +01:00
David Monllao
b8335fd56b MDL-40825 behat: Giving time to display the ajax response 2013-07-26 12:38:16 +02:00
Tim Hunt
3c620d7f7c MDL-40867 fix misleading PHPdocs for _get_coursemodule_info 2013-07-26 10:40:39 +01:00
Tim Hunt
3de55d2458 MDL-40867 External tools should launch pop-ups from the course page
Without this fix, if an LTI tool is set to open in a pop-up, then
clicking the link on the course page opens another almost blank page,
which then tries to open the pop-up, which is almost invariably caught
by your pop-up blocker.

With this fix, clicking the link on the course page opens the pop-up
directly, like for pop-up resources.
2013-07-26 10:40:16 +01:00
Tim Hunt
06ca6cc955 MDL-40863 feedback and LTI mods need get_extra_capabilities fn
Since moodle/site:accessallgroups is relevant to how them.
2013-07-26 10:39:55 +01:00
Tim Hunt
cc12ae6c4f MDL-36399 LTI editing tool config breaks on Oracle.
Note that this fix will fail if the tool URL is longer than 1333
characters.
2013-07-26 10:38:17 +01:00