60681 Commits

Author SHA1 Message Date
David Monllao
51434146e4 MDL-38948 behat: New test
According to MDLQA-76, a teacher can
set a time limit for a lesson activity.
2013-04-14 13:03:27 +08:00
David Monllao
d2ae1f07de MDL-38617 behat: New test
According to MDLQA-1178, an administrator
can filter user accounts by role, cohort
and other variables.
2013-04-14 12:39:50 +08:00
David Monllao
e2e4813b0d MDL-38949 behat: New test
According to MDLQA-81, a teacher can
password protect a lesson and/or set
available from and deadline dates.
2013-04-14 11:09:03 +08:00
David Monllao
e541bc2182 MDL-38949 behat: Fix editor presence detection issue
Checking not only the presence of an editor
in the page, also an editor for the target
field.
2013-04-14 11:07:33 +08:00
David Monllao
ed6ca2d2f1 MDL-38949 behat: Form field for selectyesno
Silly extension of behat_form_select.
2013-04-14 10:58:20 +08:00
Mary Evans
bd0f9262d2 MDL-38980 theme_bootstrap: Increased sort order value for language menu item. 2013-04-13 11:37:34 +01:00
AMOS bot
ebcec78441 Automatically generated installer lang files 2013-04-13 00:37:23 +00:00
Petr Škoda
0c4c981f03 MDL-39075 use html as default user description text format 2013-04-12 22:20:42 +02:00
Petr Škoda
0ac97084fa MDL-34674 use browser built-in spell checking in all browsers except < IE10 2013-04-12 11:33:23 +02:00
Ankit Agarwal
f42d2a22bc MDL-27814 blogs: Refactoring code to use proper context and such
Based on the decisions made in the issue, most places in blog should use site context.
There are also minor other refactoring to support all changes made in the issue.
2013-04-12 16:05:05 +08:00
Ankit Agarwal
4ef082980d MDL-27814 blogs: Deprecate associate blog caps
moodle/blog:associatemodule and moodle/blog:associatecourse should not be used
anymore as per the discussion in the issue. Everyone is free to blog about anything
they want to blog about.
2013-04-12 16:05:01 +08:00
Ankit Agarwal
7ac18cf9c2 MDL-27814 blogs: Deprecate blog_get_context_url() 2013-04-12 16:04:44 +08:00
Ankit Agarwal
a11caae7d4 MDL-27814 blogs: Remove redundant code
Since all blog pages are in system context always, it is useless to try to get course/mod params from page context
2013-04-12 16:03:05 +08:00
Ankit Agarwal
68fc1cc279 MDL-27814 blogs: Cleaning up contexts in blogs
All blogs pages should be in system context. Blogs are in system context just about various things (course, activity etc)
2013-04-12 16:03:02 +08:00
David Monllao
1e31fc1724 MDL-38962 behat: New test
According to MDLQA-112, there is a choice
of formats for editing a wiki page.
2013-04-12 14:26:28 +08:00
David Monllao
3de2643218 MDL-38960 behat: New test
According to MDLQA-111, a history of each
wiki page is available.
2013-04-12 13:22:59 +08:00
Paul Nicholls
75bdae9f6e MDL-37762: Breadcrumb not showing categories on course page 2013-04-12 16:40:12 +12:00
David Monllao
83cfd14444 MDL-38089 mod_wiki: Fix incorrect links 2013-04-12 12:14:13 +08:00
Damyon Wiese
c7ee04bd64 MDL-29877 Grades - Remove hardcoded prefix from upgrade steps 2013-04-12 11:53:48 +08:00
Damyon Wiese
42f563f65e MDL-29877 Grades - version bump for upgrade step. 2013-04-12 11:16:23 +08:00
Damyon Wiese
77dd442ab9 Merge branch 'MDL-29877_bad_grade_item' of git://github.com/andyjdavis/moodle
Conflicts:
	version.php
2013-04-12 11:14:10 +08:00
Dan Poltawski
47df95c362 Merge branch 'MDL-39054' of git://github.com/jacks92/moodle 2013-04-12 11:08:28 +08:00
Dan Poltawski
f4f0a085d8 Merge branch 'MDL-39011_master' of github.com:totara/openbadges 2013-04-12 10:45:00 +08:00
Dan Poltawski
f4686f5df9 Merge branch 'MDL-39049_master' of github.com:totara/openbadges 2013-04-12 10:30:10 +08:00
Dan Poltawski
e8c7506a45 Merge branch 'MDL-37537' of git://github.com/srynot4sale/moodle 2013-04-12 10:26:05 +08:00
Dan Poltawski
481c1c363a Merge branch 'MDL-38637-master' of github.com:StudiUM/moodle 2013-04-12 10:08:45 +08:00
David Mudrák
3ca1b54642 MDL-39087 Use progress_trace class to display uninstallation progress
This is much better API than using the array passed by reference. At the
moment, it is pretty hacky as it abuses text_progress_trace to output
raw HTML echoed by uninstall_plugin() but that will be improved later
while moving the logic out of that function into the plugin_manager.
2013-04-12 04:02:28 +02:00
Dan Poltawski
315e2ad133 Merge branch 'integration_MDL-38997' of github.com:totara/moodle 2013-04-12 09:59:49 +08:00
David Mudrák
c2d2001a14 MDL-39087 Improve the Plugins overview renderer
As suggested by Tim Hunt during the peer-review, rendering methods
should not set properties of the page they are producing HTML code for.
Additionally, the page now uses correct check that the uninstalling can
happen.
2013-04-12 03:32:35 +02:00
David Mudrák
ccc6c15fd2 MDL-39087 Fix plugin_manager::can_uninstall_plugin() implementation
There was a false positive result for subplugin required by other
subplugin. See the unit test.
2013-04-12 03:23:47 +02:00
David Mudrák
54d7589397 MDL-39087 Improve the Plugins overview table layout
This patch returns the layout of the Uninstall | Settings links to two
columns. There is no space saved on the screen by using the single
column and two columns align better. The reasoning for using single
column was that there would be multiple links in the 'Actions' column
but that does not seem to happen anytime soon.
2013-04-12 01:44:35 +02:00
David Mudrák
73658371eb MDL-39087 Simplify get_uninstall_url() interpretation
The get_uninstall_url() method of all subclasses of plugininfo_base
class is now expected to always return moodle_url. Subclasses can use
the new method is_uninstall_allowed() to control the availability of the
'Uninstall' link at the Plugins overview page (previously they would do
it by get_uninstall_url() returning null). By default, URL to a new
general plugin uninstall tool is returned. Unless the plugin type needs
extra steps that can't be handled by plugininfo_xxx::uninstall() method
or xmldb_xxx_uninstall() function, this default URL should satisfy all
plugin types.

The overall logic is implemented in plugin_manager::can_install_plugin()
that respects the plugininfo class decision and vetoes it in certain
cases (typically when plugin or its subplugin is required by some other
plugin).
2013-04-12 01:44:35 +02:00
David Mudrák
d7d48b4091 MDL-39087 Add new helper methods to the plugin_manager API
These are mainly intended for callers that had to iterate over
get_plugins() result manually.
2013-04-12 01:44:34 +02:00
David Mudrák
c6f4c88ffb MDL-39087 Offer deleting for standard plugins if possible, too
The plugin_manager::is_plugin_folder_removable() method should do just
one thing and do it well. Also, as was raised during the peer-review,
there should not be technical differences between standard plugins and
add-ons.
2013-04-12 01:42:58 +02:00
David Mudrák
86a862cdc2 MDL-39087 Add missing unit tests for the plugin_manager
This patch improves and adds unit tests for the plugin_manager class.
These unit tests cover the existing functionalities. Tests for the
new features related directly with MDL-38259 will be added in a separate
commit (to make it clear what's related to it).
2013-04-12 01:42:58 +02:00
David Mudrák
7a46a55d00 MDL-39087 Fix plugin_manager::plugin_name() implementation
This is not directly related to the issue. However, it turned out that
if this method was called on plugin_manager without loaded plugins, it
would throw an error. This new implementation uses cleaner access to the
plugininfo subclass.
2013-04-12 01:42:58 +02:00
David Mudrák
bfaed43214 MDL-39087 Fix missing cronlib inclusion in file_storage::cron()
This is not actually related to MDL-38259 but it was discovered while
running unit tests for file_storage. When running the tests for this
class separately, the cronlib.php was not included (it is included
when this method is normally called during cron execution).
2013-04-12 01:42:58 +02:00
David Mudrák
546b886416 MDL-39087 Delete all component files in uninstall_plugin() 2013-04-12 01:42:58 +02:00
David Mudrák
5718a12313 MDL-39087 Purge all caches at the end of uninstall_plugin()
This is necessary now as many plugins management related features
started to use MUC intensively recently. During the development of this
issue, we realized that the plugin was still considered as installed if
caches were not purged.
2013-04-12 01:42:58 +02:00
David Mudrák
436d94478d MDL-39087 Implement a common interface for uninstalling general plugin
Plugins may use this general tool for uninstallation and eventually
removal of the deployed source code. At the moment, this is implemented
as a wrapper for the core function uninstall_plugin() with an extra hook
in the relevant plugin info subclass.

For non-standard add-ons, the tool can remove the deployed plugin source
code as well, if the web server has required write permissions. Ideally,
all add-ons installed via the new tool_installaddon should be removable
via the web interface as well.
2013-04-12 01:42:58 +02:00
David Mudrák
0b733dd9e2 MDL-39087 Clarify plugininfo_base::get_uninstall_url() return value
The method now returns null if there should be no 'Uninstall' link at
the Plugins management screen. For non-standard add-ons the method now
returns URL to a general uninstall tool.

Plugin info subclasses can still override the method to provide URL to
their own UI for uninstalling. If the plugin type wants to use the
general uninstall tool also for standard plugins, it should override
this method and explicitly return $this->get_default_uninstall_url().
Otherwise, the 'Uninstall' link will be provided for add-ons only.
2013-04-12 01:42:58 +02:00
Matteo Scaramuccia
5ecd13bc66 MDL-38678 SCORM: Runtime Environment (RTE) checks not required in case of SCO Assets 2013-04-11 22:44:29 +02:00
Jean-Philippe Gaudreau
d1f167aa56 MDL-38637 CAS Authentication: Undefined index: QUERY_STRING when executing cron 2013-04-11 10:56:21 -04:00
Eloy Lafuente (stronk7)
2f587fb334 Merge branch 'MDL-38828_master' of git://github.com/dmonllao/moodle 2013-04-11 16:44:47 +02:00
Eloy Lafuente (stronk7)
2087fa6223 Merge branch 'MDL-38961_master' of git://github.com/dmonllao/moodle 2013-04-11 16:32:32 +02:00
Eloy Lafuente (stronk7)
bd3d4c9e8d Merge branch 'MDL-38963_master' of git://github.com/dmonllao/moodle 2013-04-11 16:30:08 +02:00
Jean-Michel Vedrine
c80fb6d95e MDL-38880 Imported Cloze questions lose embedded images or other media 2013-04-11 16:22:20 +02:00
Eloy Lafuente (stronk7)
33fcbe89d4 Merge branch 'MDL-38940_master' of git://github.com/dmonllao/moodle 2013-04-11 16:11:40 +02:00
Eloy Lafuente (stronk7)
c51e1fa37e Merge branch 'MDL-38957_master' of git://github.com/dmonllao/moodle 2013-04-11 15:56:45 +02:00
Eloy Lafuente (stronk7)
e9bcf8019b Merge branch 'MDL-38958_master' of git://github.com/dmonllao/moodle 2013-04-11 15:52:53 +02:00