diff options
Diffstat (limited to 'application/render/PageBuilder.php')
-rw-r--r-- | application/render/PageBuilder.php | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/application/render/PageBuilder.php b/application/render/PageBuilder.php index 2779eb90..85e1d59d 100644 --- a/application/render/PageBuilder.php +++ b/application/render/PageBuilder.php | |||
@@ -70,6 +70,15 @@ class PageBuilder | |||
70 | } | 70 | } |
71 | 71 | ||
72 | /** | 72 | /** |
73 | * Reset current state of template rendering. | ||
74 | * Mostly useful for error handling. We remove everything, and display the error template. | ||
75 | */ | ||
76 | public function reset(): void | ||
77 | { | ||
78 | $this->tpl = false; | ||
79 | } | ||
80 | |||
81 | /** | ||
73 | * Initialize all default tpl tags. | 82 | * Initialize all default tpl tags. |
74 | */ | 83 | */ |
75 | private function initialize() | 84 | private function initialize() |