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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user