From 5ab661271bdaac12d872f6b9c64f8f5e48333bca Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Fri, 28 Dec 2018 09:01:09 +0000 Subject: [PATCH] renderer : if the output is not defined in domframework, do not generate an error to allow the loading of the class by the autoloader git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4813 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- renderer.php | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/renderer.php b/renderer.php index 95f7b85..7e868c7 100644 --- a/renderer.php +++ b/renderer.php @@ -27,7 +27,9 @@ class renderer $this->output */ public function run () { - require_once ("domframework/outputhtml.php"); + // If the output is not defined in domframework, it will not be loaded but + // without error, it can be loaded by the autoloader + @require_once ("domframework/output$this->output.php"); $class = __NAMESPACE__."\\output$this->output"; $obj = new $class (); $res = call_user_func_array (array ($obj, "out"),