From c495461ffb35b1c78b1828c6921eb890f5ccc327 Mon Sep 17 00:00:00 2001 From: Art4 Date: Sun, 10 Nov 2024 12:13:32 +0000 Subject: [PATCH] Fix missing $app --- src/App/Page.php | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/App/Page.php b/src/App/Page.php index 85ec7bf2c1..7e6ee629f3 100644 --- a/src/App/Page.php +++ b/src/App/Page.php @@ -431,7 +431,7 @@ class Page implements ArrayAccess if (function_exists(str_replace('-', '_', $currentTheme) . '_init')) { $func = str_replace('-', '_', $currentTheme) . '_init'; - $func($app); + $func($appHelper); } /* Create the page head after setting the language @@ -441,7 +441,7 @@ class Page implements ArrayAccess * all the module functions have executed so that all * theme choices made by the modules can take effect. */ - $this->initHead($app, $args, $l10n, $config, $pconfig, $localUID); + $this->initHead($appHelper, $args, $l10n, $config, $pconfig, $localUID); /* Build the page ending -- this is stuff that goes right before * the closing tag @@ -527,7 +527,7 @@ class Page implements ArrayAccess } // Theme templates expect $a as an App instance - $a = $app; + $a = $appHelper; // Used as is in view/php/default.php $lang = $l10n->getCurrentLang();