fixed mediaform urls in modeladmin

see http://open.silverstripe.org/ticket/8013
This commit is contained in:
Tim Klein 2012-11-09 16:44:48 +13:00
parent 68826357cc
commit f0f5dcb966

View File

@ -278,8 +278,8 @@ class HtmlEditorField_Toolbar extends RequestHandler {
public function forTemplate() {
return sprintf(
'<div id="cms-editor-dialogs" data-url-linkform="%s" data-url-mediaform="%s"></div>',
Controller::join_links($this->controller->Link($this->name), 'LinkForm', 'forTemplate'),
Controller::join_links($this->controller->Link($this->name), 'MediaForm', 'forTemplate')
Controller::join_links($this->controller->Link(), $this->name, 'LinkForm', 'forTemplate'),
Controller::join_links($this->controller->Link(), $this->name, 'MediaForm', 'forTemplate')
);
}