Skip to content

Commit

Permalink
Update AddPage.php for PHP8.2
Browse files Browse the repository at this point in the history
Fix function signature to be compatible with base class, required for PHP 8.2
  • Loading branch information
TDannhauer committed Apr 10, 2023
1 parent 108fa45 commit 75d88b5
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Page/AddPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,11 @@ public function __construct($newpage)

/**
* Bail out if there's no page name.
*
* $param integer $mode The page render mode.
* $param array $params Any page parameters.
*/
public function preDisplay()
public function preDisplay($mode, $params)
{
if (!strlen($this->referrer())) {
$GLOBALS['notification']->push(_("Page name must not be empty"));
Expand Down

0 comments on commit 75d88b5

Please sign in to comment.