MDL-37564 linked dependant plugin component text to plugins DB

This commit is contained in:
Aparup Banerjee
2013-01-17 14:36:39 +08:00
parent ca48fe5f97
commit 9a7bd21fb3
+3 -1
View File
@@ -918,9 +918,11 @@ class core_admin_renderer extends plugin_renderer_base {
} else {
$str = 'otherplugin';
}
$componenturl = new moodle_url('https://moodle.org/plugins/view.php?plugin='.$component);
$componenturl = html_writer::tag('a', $component, array('href' => $componenturl->out()));
$requires[] = html_writer::tag('li',
get_string($str, 'core_plugin',
array('component' => $component, 'version' => $requiredversion)),
array('component' => $componenturl, 'version' => $requiredversion)),
array('class' => $class));
}