newVersion(Core::id(), dcCore::app()->plugins->moduleInfo(Core::id(), 'version')); return self::$init; } public static function process() { if (!self::$init) { return false; } try { # Set module settings dcCore::app()->blog->settings->addNamespace(Core::id()); foreach (self::$mod_conf as $v) { dcCore::app()->blog->settings->__get(Core::id())->put( $v[0], $v[2], $v[3], $v[1], false, true ); } return true; } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); return false; } } }