MDL-37564 linked dependant plugin component text to plugins DB

This commit is contained in:
Aparup Banerjee
2013-09-03 14:57:41 +08:00
committed by Damyon Wiese
parent e75bd18064
commit 3bc786adb1
+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));
}