]> git.mxchange.org Git - friendica.git/blobdiff - src/App.php
Remove code parameter from HTTPException constructor
[friendica.git] / src / App.php
index 9cde12499859cf5878910a87931f292374ae0725..328a1a15226652ff8b7cf0d1054b49ff07864088 100644 (file)
@@ -49,7 +49,6 @@ class App
        public $page_contact;
        public $content;
        public $data = [];
-       public $error = false;
        public $cmd = '';
        public $argv;
        public $argc;
@@ -1252,9 +1251,7 @@ class App
 
                        // "rawContent" is especially meant for technical endpoints.
                        // This endpoint doesn't need any theme initialization or other comparable stuff.
-                       if (!$this->error) {
                                call_user_func([$this->module_class, 'rawContent']);
-                       }
                }
 
                // Load current theme info after module has been initialized as theme could have been set in module
@@ -1269,24 +1266,20 @@ class App
                }
 
                if ($this->module_class) {
-                       if (! $this->error && $_SERVER['REQUEST_METHOD'] === 'POST') {
+                       if ($_SERVER['REQUEST_METHOD'] === 'POST') {
                                Core\Hook::callAll($this->module . '_mod_post', $_POST);
                                call_user_func([$this->module_class, 'post']);
                        }
 
-                       if (! $this->error) {
                                Core\Hook::callAll($this->module . '_mod_afterpost', $placeholder);
                                call_user_func([$this->module_class, 'afterpost']);
-                       }
 
-                       if (! $this->error) {
                                $arr = ['content' => $content];
                                Core\Hook::callAll($this->module . '_mod_content', $arr);
                                $content = $arr['content'];
                                $arr = ['content' => call_user_func([$this->module_class, 'content'])];
                                Core\Hook::callAll($this->module . '_mod_aftercontent', $arr);
                                $content .= $arr['content'];
-                       }
                }
 
                // initialise content region