MDL-40220 use new core_component::normalize_component()

This commit is contained in:
Petr Škoda
2013-07-16 22:41:00 +02:00
parent 1c74b26090
commit 56da374e1e
17 changed files with 25 additions and 25 deletions
+1 -1
View File
@@ -2895,7 +2895,7 @@ function get_component_string($component, $contextlevel) {
}
}
list($type, $name) = normalize_component($component);
list($type, $name) = core_component::normalize_component($component);
$dir = core_component::get_plugin_directory($type, $name);
if (!file_exists($dir)) {
// plugin not installed, bad luck, there is no way to find the name