X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=src%2FApp.php;h=fddfb0a6dadefcaeccd21dc9151c10994c527031;hb=58c9566c3d086583a1a55901c8c1c865d5f94891;hp=316982dd281dd08e233b9ec4a490a3f185603a1b;hpb=33ec318ca6f8c7451bf3da0dd4137e6baefcf4fc;p=friendica.git diff --git a/src/App.php b/src/App.php index 316982dd28..fddfb0a6da 100644 --- a/src/App.php +++ b/src/App.php @@ -138,6 +138,16 @@ class App return $this->config->getCache(); } + /** + * Returns the current config of this node + * + * @return Configuration + */ + public function getConfig() + { + return $this->config; + } + /** * The basepath of this app * @@ -1302,8 +1312,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') {