output MDL-20204 Fixed regression action link wasn't making use of attributes argument

This commit is contained in:
Sam Hemelryk
2010-02-24 06:11:45 +00:00
parent 524645e768
commit b0fef57b1b
+1
View File
@@ -568,6 +568,7 @@ class action_link implements renderable {
public function __construct(moodle_url $url, $text, component_action $action=null, array $attributes=null) {
$this->url = clone($url);
$this->text = $text;
$this->attributes = (array)$attributes;
if ($action) {
$this->add_action($action);
}