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
This commit is contained in:
2018-12-28 09:01:09 +00:00
parent 1ed5c8317f
commit 5ab661271b

View File

@@ -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"),