[feature/module_services] Add ability to use old module files for now

This commit is contained in:
Marc Alexander
2013-11-10 13:18:57 +01:00
parent e3220460a9
commit d63149f33b
29 changed files with 42 additions and 29 deletions

View File

@@ -177,7 +177,20 @@ class main
// Do not try to load non-existant modules
if (!isset($this->modules[$row['module_classname']]))
{
continue;
if (file_exists("{$this->includes_path}modules/portal_{$row['module_classname']}{$this->php_ext}"))
{
include("{$this->includes_path}modules/portal_{$row['module_classname']}{$this->php_ext}");
}
$class_name = 'portal_' . $row['module_classname'] . '_module';
if (class_exists($class_name))
{
$module = new $class_name();
}
else
{
continue;
}
}
else
{