diff --git a/forms/HtmlEditorField.php b/forms/HtmlEditorField.php index 7cc419977..dd0d7ac6b 100644 --- a/forms/HtmlEditorField.php +++ b/forms/HtmlEditorField.php @@ -576,7 +576,7 @@ class HtmlEditorField_Toolbar extends RequestHandler { $id = (int)$this->getRequest()->getVar('PageID'); $anchors = array(); - if (($page = Page::get()->byID($id)) && !empty($page)) { + if (($page = SiteTree::get()->byID($id)) && !empty($page)) { if (!$page->canView()) { throw new SS_HTTPResponse_Exception( _t(