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
This commit is contained in:
2018-03-05 20:55:31 +00:00
parent 13f7eeea8c
commit 1bd2395de9

View File

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