@@ -35,7 +35,8 @@ public function run() {
3535 }
3636 } catch (\Throwable $ e ) {
3737 \TgLog \Log::error ('Cannot create application ' , $ e );
38- $ page = new Error \ErrorPage ($ this ->app , 500 , 'Internal Error ' , $ e );
38+ $ page = $ this ->theme ->getErrorPage (500 , 'Internal Error ' , $ e );
39+ // $page = new Error\ErrorPage($this->app, 500, 'Internal Error', $e);
3940 $ page ->processRequest ();
4041 $ this ->theme ->render ($ page );
4142 }
@@ -63,7 +64,7 @@ protected function createPage() {
6364
6465 // Get a specific error page from the theme
6566 if ($ page == NULL ) {
66- $ page = $ this ->theme ->getErrorPage (404 );
67+ $ page = $ this ->theme ->getErrorPage (404 , ' Error ' );
6768 }
6869
6970 // Get the default error page
@@ -73,7 +74,8 @@ protected function createPage() {
7374 return $ page ;
7475 } catch (\Throwable $ e ) {
7576 \TgLog \Log::error ('Cannot create application ' , $ e );
76- return new Error \ErrorPage ($ this ->app , 500 , 'Internal Error ' , $ e );
77+ return $ this ->theme ->getErrorPage (500 , 'Internal Error ' , $ e );
78+ //return new Error\ErrorPage($this->app, 500, 'Internal Error', $e);
7779 }
7880 }
7981
0 commit comments