plugins->moduleInfo('dcAdvancedCleaner', 'version'); $old_version = $core->getVersion('dcAdvancedCleaner'); if (version_compare($old_version, $new_version, '>=')) { return null; } try { $core->blog->settings->addNamespace('dcAdvancedCleaner'); $core->blog->settings->dcAdvancedCleaner->put( 'dcAdvancedCleaner_behavior_active', true, 'boolean', '', false, true ); $core->blog->settings->dcAdvancedCleaner->put( 'dcAdvancedCleaner_dcproperty_hide', true, 'boolean', '', false, true ); $core->setVersion('dcAdvancedCleaner', $new_version); return true; } catch (Exception $e) { $core->error->add($e->getMessage()); return false; }