diff --git a/src/Controllers/HistoryViewerController.php b/src/Controllers/HistoryViewerController.php index 5ba9ffc..8a5280d 100644 --- a/src/Controllers/HistoryViewerController.php +++ b/src/Controllers/HistoryViewerController.php @@ -3,7 +3,7 @@ namespace SilverStripe\VersionedAdmin\Controllers; use InvalidArgumentException; -use SilverStripe\Admin\LeftAndMain; +use SilverStripe\Admin\FormSchemaController; use SilverStripe\Admin\LeftAndMainFormRequestHandler; use SilverStripe\Control\HTTPRequest; use SilverStripe\Control\HTTPResponse; @@ -22,7 +22,7 @@ * The HistoryViewerController provides AJAX endpoints for React to enable functionality, such as retrieving the form * schema. */ -class HistoryViewerController extends LeftAndMain +class HistoryViewerController extends FormSchemaController { /** * @var string @@ -42,8 +42,6 @@ class HistoryViewerController extends LeftAndMain private static $required_permission_codes = 'CMS_ACCESS_CMSMain'; - private static $ignore_menuitem = true; - private static array $url_handlers = [ 'GET api/read' => 'apiRead', 'POST api/revert' => 'apiRevert',