public function updateModuleConfig(WebModule $module)
{
$newConfig = $this->getModulesConfigDefault($module->getId());
$currentConfig = $this->getModulesConfig($module->getId());
if ((!file_exists($currentConfig) || YFile::rmFile($currentConfig)) && YFile::cpFile($newConfig, $currentConfig)) {
Yii::app()->configManager->flushDump();
return true;
}
return false;
}