From a55efbab7aff192a3bc31dfc63fafc4285209e60 Mon Sep 17 00:00:00 2001 From: Hypolite Petovan Date: Sat, 13 Apr 2019 10:32:15 -0400 Subject: [PATCH] Only call page_end hooks for standalone pages (no Ajax) --- src/App.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/App.php b/src/App.php index 316982dd28..1123f67b06 100644 --- a/src/App.php +++ b/src/App.php @@ -1302,8 +1302,9 @@ class App header($_SERVER["SERVER_PROTOCOL"] . ' 403 ' . Core\L10n::t('Permission denied.')); } - // Report anything which needs to be communicated in the notification area (before the main body) - Core\Hook::callAll('page_end', $this->page['content']); + if (!$this->isAjax()) { + Core\Hook::callAll('page_end', $this->page['content']); + } // Add the navigation (menu) template if ($this->module != 'install' && $this->module != 'maintenance') { -- 2.39.5