mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Don't try to update third-party module during install if it doesn't have update methods #1967
This commit is contained in:
parent
f77449f628
commit
16ecfa408e
1 changed files with 8 additions and 3 deletions
|
|
@ -473,7 +473,10 @@ class installController extends install
|
||||||
// Install "module" module in advance
|
// Install "module" module in advance
|
||||||
$this->installModule('module','./modules/module');
|
$this->installModule('module','./modules/module');
|
||||||
$oModule = ModuleModel::getModuleInstallClass($module);
|
$oModule = ModuleModel::getModuleInstallClass($module);
|
||||||
if($oModule->checkUpdate()) $oModule->moduleUpdate();
|
if($oModule && method_exists($oModule, 'checkUpdate') && method_exists($oModule, 'moduleUpdate') && $oModule->checkUpdate())
|
||||||
|
{
|
||||||
|
$oModule->moduleUpdate();
|
||||||
|
}
|
||||||
// Determine the order of module installation depending on category
|
// Determine the order of module installation depending on category
|
||||||
$install_step = array('system','content','member');
|
$install_step = array('system','content','member');
|
||||||
// Install all the remaining modules
|
// Install all the remaining modules
|
||||||
|
|
@ -562,9 +565,11 @@ class installController extends install
|
||||||
}
|
}
|
||||||
|
|
||||||
// Create a table and module instance and then execute install() method
|
// Create a table and module instance and then execute install() method
|
||||||
unset($oModule);
|
|
||||||
$oModule = ModuleModel::getModuleInstallClass($module);
|
$oModule = ModuleModel::getModuleInstallClass($module);
|
||||||
if(method_exists($oModule, 'moduleInstall')) $oModule->moduleInstall();
|
if($oModule && method_exists($oModule, 'moduleInstall'))
|
||||||
|
{
|
||||||
|
$oModule->moduleInstall();
|
||||||
|
}
|
||||||
return new BaseObject();
|
return new BaseObject();
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue