Skip to content

Commit

Permalink
Merge branch 'w36_MDL-41267_m26_toolsubplugins' of https://github.com…
Browse files Browse the repository at this point in the history
…/skodak/moodle

Conflicts:
	lib/upgrade.txt
  • Loading branch information
stronk7 committed Sep 3, 2013
2 parents df7995e + ac2b271 commit f875599
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/classes/component.php
Original file line number Diff line number Diff line change
Expand Up @@ -31,7 +31,7 @@ class core_component {
/** @var array list of ignored directories - watch out for auth/db exception */
protected static $ignoreddirs = array('CVS'=>true, '_vti_cnf'=>true, 'simpletest'=>true, 'db'=>true, 'yui'=>true, 'tests'=>true, 'classes'=>true, 'fonts'=>true);
/** @var array list plugin types that support subplugins, do not add more here unless absolutely necessary */
protected static $supportsubplugins = array('mod', 'editor', 'local');
protected static $supportsubplugins = array('mod', 'editor', 'tool', 'local');

/** @var null cache of plugin types */
protected static $plugintypes = null;
Expand Down Expand Up @@ -429,6 +429,9 @@ protected static function fetch_subplugins($type, $fulldir) {
error_log("Invalid subtype '$subtype'' detected in '$ownerdir', duplicates core subsystem.");
continue;
}
if ($CFG->admin !== 'admin' and strpos($dir, 'admin/') === 0) {
$dir = preg_replace('|^admin/|', "$CFG->admin/", $dir);
}
if (!is_dir("$CFG->dirroot/$dir")) {
error_log("Invalid subtype directory '$dir' detected in '$ownerdir'.");
continue;
Expand Down
1 change: 1 addition & 0 deletions lib/upgrade.txt
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ information provided here is intended especially for developers.
* Function moveto_module() does not modify $mod argument and instead now returns the new module visibility value.
* Use behat_selectors::get_allowed_text_selectors() and behat_selectors::get_allowed_selectors() instead of
behat_command::$allowedtextselectors and behat_command::$allowedselectors
* Subplugins are supported in admin tools and local plugins.

DEPRECATIONS:
Various previously deprecated functions have now been altered to throw DEBUG_DEVELOPER debugging notices
Expand Down

0 comments on commit f875599

Please sign in to comment.