mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Allow the install class of a module to be inside the controllers directory
This commit is contained in:
parent
33bef05b09
commit
4c65499ab1
1 changed files with 6 additions and 1 deletions
|
|
@ -1408,7 +1408,12 @@ class moduleModel extends module
|
|||
{
|
||||
return $class_name::getInstance();
|
||||
}
|
||||
elseif ($oModule = getModule($module_name, 'class'))
|
||||
$class_name = 'Rhymix\\Modules\\' . ucfirst($module_name) . '\\Controllers\\Install';
|
||||
if (class_exists($class_name))
|
||||
{
|
||||
return $class_name::getInstance();
|
||||
}
|
||||
if ($oModule = getModule($module_name, 'class'))
|
||||
{
|
||||
return $oModule;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue