We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent ce12371 commit 7d6df60Copy full SHA for 7d6df60
src/WebApp/Application.php
@@ -329,6 +329,10 @@ public function getMenu($id = NULL) {
329
return NULL;
330
}
331
332
+ public function getErrorPage($httpCode) {
333
+ return NULL;
334
+ }
335
+
336
/**
337
* Persist any error message in the database.
338
*/
src/WebApp/Theme.php
@@ -184,8 +184,9 @@ public function hasFeature($name) {
184
185
186
public function getErrorPage($htmlCode) {
187
- $name = '\\WebApp\\Error\\ErrorPage';
188
- return new $name($this->app, $htmlCode, 'Error');
+ $rc = $this->app->getErrorPage($htmlCode);
+ if ($rc == NULL) $rc = new \WebApp\Error\ErrorPage($this->app, $htmlCode, 'Error');
189
+ return $rc;
190
191
192
0 commit comments