add global to display_page function

This commit is contained in:
jellykells 2021-11-21 08:25:41 -06:00
parent e114079b96
commit 1b7e505f19

View file

@ -10,7 +10,7 @@ class WikiTheme extends Themelet
*/
public function display_page(Page $page, WikiPage $wiki_page, ?WikiPage $nav_page=null)
{
global $user;
global $config, $user;
if (is_null($nav_page)) {
$nav_page = new WikiPage();