MDL-37564 linked dependant plugin component text to plugins DB
authorAparup Banerjee <aparup@moodle.com>
Thu, 17 Jan 2013 06:29:55 +0000 (14:29 +0800)
committerAparup Banerjee <aparup@moodle.com>
Thu, 17 Jan 2013 06:36:39 +0000 (14:36 +0800)
admin/renderer.php

index 8d49636..802cab3 100644 (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));
         }