Skip to content

Commit

Permalink
Update EditPage.php for PHP8.2
Browse files Browse the repository at this point in the history
Fix Wicked to make pages editable again with PHP 8.2
  • Loading branch information
TDannhauer committed Apr 10, 2023
1 parent cae5b05 commit 54e00e9
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Page/EditPage.php
Expand Up @@ -83,8 +83,11 @@ public function getPermissions($pageName = null)
/**
* Send them back whence they came if they aren't allowed to edit
* this page.
*
* $param integer $mode The page render mode.
* $param array $params Any page parameters.
*/
public function preDisplay()
public function preDisplay($mode, $params)
{
if (!$this->allows(Wicked::MODE_EDIT)) {
Wicked::url($this->referrer(), true)->redirect();
Expand Down

0 comments on commit 54e00e9

Please sign in to comment.