Skip to content

Commit

Permalink
Bug: 14586 Avoid PHP 7 errors.
Browse files Browse the repository at this point in the history
  • Loading branch information
mrubinsk committed Mar 2, 2017
1 parent 251791c commit 841668f
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
2 changes: 2 additions & 0 deletions wicked/lib/Page.php
Expand Up @@ -72,6 +72,8 @@ public function isValid()
* permissions object does not exist, we assume reasonable
* defaults.
*
* @param string $pageName The page name.
*
* @return integer The permissions bitmask.
*/
public function getPermissions($pageName = null)
Expand Down
4 changes: 3 additions & 1 deletion wicked/lib/Page/EditPage.php
Expand Up @@ -71,9 +71,11 @@ public function allows($mode)
/**
* Retrieve this user's permissions for the referring page.
*
* @param string $pageName The page name (unused in this method).
*
* @return integer The permissions bitmask.
*/
public function getPermissions()
public function getPermissions($pageName = null)
{
return parent::getPermissions($this->referrer());
}
Expand Down

0 comments on commit 841668f

Please sign in to comment.