add global to display_page function
This commit is contained in:
parent
e114079b96
commit
1b7e505f19
1 changed files with 1 additions and 1 deletions
|
@ -10,7 +10,7 @@ class WikiTheme extends Themelet
|
||||||
*/
|
*/
|
||||||
public function display_page(Page $page, WikiPage $wiki_page, ?WikiPage $nav_page=null)
|
public function display_page(Page $page, WikiPage $wiki_page, ?WikiPage $nav_page=null)
|
||||||
{
|
{
|
||||||
global $user;
|
global $config, $user;
|
||||||
|
|
||||||
if (is_null($nav_page)) {
|
if (is_null($nav_page)) {
|
||||||
$nav_page = new WikiPage();
|
$nav_page = new WikiPage();
|
||||||
|
|
Reference in a new issue