Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
integration
prechecker
Commits
55e54953
Commit
55e54953
authored
Nov 14, 2016
by
Dan Poltawski
Browse files
Merge branch 'MDL-56916-master-normalizedoc' of
git://github.com/mudrd8mz/moodle
parents
8d857d0e
6b6a2ec4
Changes
2
Hide whitespace changes
Inline
Side-by-side
lib/classes/component.php
View file @
55e54953
...
...
@@ -1029,7 +1029,7 @@ $cache = '.var_export($cache, true).';
* Note: this does not verify the validity of plugin or type names.
*
* @param string $component
* @return array
as
(string)
$
type
=>
(string
)$plugin
* @return array
two-items list of [
(string)type
,
(string
|null)name]
*/
public
static
function
normalize_component
(
$component
)
{
if
(
$component
===
'moodle'
or
$component
===
'core'
or
$component
===
''
)
{
...
...
lib/deprecatedlib.php
View file @
55e54953
...
...
@@ -214,7 +214,7 @@ function get_plugin_directory($plugintype, $name) {
* @deprecated since 2.6, use core_component::normalize_component()
*
* @param string $component
* @return array
as
(string)
$
type
=>
(string
)$plugin
* @return array
two-items list of [
(string)type
,
(string
|null)name]
*/
function
normalize_component
(
$component
)
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment