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