Skip to content

Commit

Permalink
Merge pull request #366 from creative-commoners/pulls/3/new-admincont…
Browse files Browse the repository at this point in the history
…roller

API Update method signature to match parent class
  • Loading branch information
emteknetnz authored Oct 20, 2024
2 parents 46fbfe4 + c13c127 commit df327e2
Show file tree
Hide file tree
Showing 3 changed files with 5 additions and 9 deletions.
8 changes: 0 additions & 8 deletions _config.php

This file was deleted.

2 changes: 2 additions & 0 deletions src/Controllers/CMSPageHistoryViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ class CMSPageHistoryViewerController extends CMSMain

private static $required_permission_codes = 'CMS_ACCESS_CMSMain';

private static $ignore_menuitem = true;

public function getEditForm($id = null, $fields = null)
{
$record = $this->getRecord($id ?: $this->currentPageID());
Expand Down
4 changes: 3 additions & 1 deletion src/Controllers/HistoryViewerController.php
Original file line number Diff line number Diff line change
Expand Up @@ -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',
Expand All @@ -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) {
Expand Down

0 comments on commit df327e2

Please sign in to comment.