diff --git a/_config.php b/_config.php deleted file mode 100644 index 9ecd2c2..0000000 --- a/_config.php +++ /dev/null @@ -1,8 +0,0 @@ -getRecord($id ?: $this->currentPageID()); diff --git a/src/Controllers/HistoryViewerController.php b/src/Controllers/HistoryViewerController.php index 7f9fe1f..5ba9ffc 100644 --- a/src/Controllers/HistoryViewerController.php +++ b/src/Controllers/HistoryViewerController.php @@ -42,6 +42,8 @@ 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', @@ -65,7 +67,7 @@ class HistoryViewerController extends LeftAndMain /** * Returns configuration required by the client app */ - public function getClientConfig() + public function getClientConfig(): array { $clientConfig = parent::getClientConfig(); foreach ($this->formNames as $formName) {