Only call page_end hooks for standalone pages (no Ajax)

This commit is contained in:
Hypolite Petovan 2019-04-13 10:32:15 -04:00
parent 2133decf4c
commit a55efbab7a
1 changed files with 3 additions and 2 deletions

View File

@ -1302,8 +1302,9 @@ class App
header($_SERVER["SERVER_PROTOCOL"] . ' 403 ' . Core\L10n::t('Permission denied.')); 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) if (!$this->isAjax()) {
Core\Hook::callAll('page_end', $this->page['content']); Core\Hook::callAll('page_end', $this->page['content']);
}
// Add the navigation (menu) template // Add the navigation (menu) template
if ($this->module != 'install' && $this->module != 'maintenance') { if ($this->module != 'install' && $this->module != 'maintenance') {