Skip to content

Commit

Permalink
Update NewPage.php
Browse files Browse the repository at this point in the history
  • Loading branch information
TDannhauer committed Apr 10, 2023
1 parent 75d88b5 commit e75c171
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion lib/Page/NewPage.php
Original file line number Diff line number Diff line change
Expand Up @@ -65,8 +65,11 @@ public function getPermissions()
/**
* 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 (!strlen($this->referrer())) {
$GLOBALS['notification']->push(_("Page name must not be empty"));
Expand Down

0 comments on commit e75c171

Please sign in to comment.