]> git.immae.eu Git - github/shaarli/Shaarli.git/blobdiff - application/render/PageBuilder.php
Process main page (linklist) through Slim controller
[github/shaarli/Shaarli.git] / application / render / PageBuilder.php
index 2779eb90ddcea62c0637f551f7caee319207d3bf..85e1d59df9fe4866a3df19144b193debfe1ee480 100644 (file)
@@ -69,6 +69,15 @@ class PageBuilder
         $this->isLoggedIn = $isLoggedIn;
     }
 
+    /**
+     * Reset current state of template rendering.
+     * Mostly useful for error handling. We remove everything, and display the error template.
+     */
+    public function reset(): void
+    {
+        $this->tpl = false;
+    }
+
     /**
      * Initialize all default tpl tags.
      */