mirror of
https://github.com/moodle/moodle.git
synced 2025-04-15 13:33:52 +02:00
MDL-67768 core: Add some common dirs to core_component::$ignoreddirs
The core_component::$ignoreddirs lists all directories that are reserved and cannot be used as valid plugin names. This is particularly important for some plugin types such as 'webservice' that share the same root location as the core subsystem of the same name.
This commit is contained in:
parent
4e41ace0be
commit
3f82b17927
@ -42,8 +42,21 @@ define('ANY_VERSION', 'any');
|
||||
* Collection of components related methods.
|
||||
*/
|
||||
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 of ignored directories in plugin type roots - watch out for auth/db exception */
|
||||
protected static $ignoreddirs = [
|
||||
'CVS' => true,
|
||||
'_vti_cnf' => true,
|
||||
'amd' => true,
|
||||
'classes' => true,
|
||||
'db' => true,
|
||||
'fonts' => true,
|
||||
'lang' => true,
|
||||
'pix' => true,
|
||||
'simpletest' => true,
|
||||
'templates' => true,
|
||||
'tests' => true,
|
||||
'yui' => true,
|
||||
];
|
||||
/** @var array list plugin types that support subplugins, do not add more here unless absolutely necessary */
|
||||
protected static $supportsubplugins = array('mod', 'editor', 'tool', 'local');
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user