1
0
Fork 0

Merge pull request #7003 from MrPetovan/bug/7001-prevent-ajax-page_end

Only call page_end hooks for standalone pages (no Ajax)
This commit is contained in:
Philipp 2019-04-13 18:07:42 +02:00 committed by GitHub
commit c3f49b7151
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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') {