From 1bd2395de9368fcc96eacbd2b72aa5ea4f4cdaf9 Mon Sep 17 00:00:00 2001 From: Dominique Fournier Date: Mon, 5 Mar 2018 20:55:31 +0000 Subject: [PATCH] outputhtml : allow the class to be defined by an autoloader instead of hard wire the class files git-svn-id: https://svn.fournier38.fr/svn/ProgSVN/trunk@4139 bf3deb0d-5f1a-0410-827f-c0cc1f45334c --- outputhtml.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/outputhtml.php b/outputhtml.php index 5915ff9..8549967 100644 --- a/outputhtml.php +++ b/outputhtml.php @@ -36,7 +36,7 @@ class outputhtml extends output $resView = $data; if ($viewClass !== FALSE && $viewMethod !== FALSE) { - if (! class_exists ($viewClass)) + if (! class_exists ($viewClass) && empty (spl_autoload_functions ())) { if ($module !== "") require_once ("modules/$module/views/$viewClass.php");