]> git.mxchange.org Git - friendica.git/commitdiff
Only call page_end hooks for standalone pages (no Ajax)
authorHypolite Petovan <hypolite@mrpetovan.com>
Sat, 13 Apr 2019 14:32:15 +0000 (10:32 -0400)
committerHypolite Petovan <hypolite@mrpetovan.com>
Sat, 13 Apr 2019 14:32:15 +0000 (10:32 -0400)
src/App.php

index 316982dd281dd08e233b9ec4a490a3f185603a1b..1123f67b067003f447bdf9af43a492ee54b7a81e 100644 (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') {