newVersion( basename(__DIR__), dcCore::app()->plugins->moduleInfo(basename(__DIR__), 'version') )) { return null; } # Set module settings dcCore::app()->blog->settings->addNamespace(basename(__DIR__)); foreach ($mod_conf as $v) { dcCore::app()->blog->settings->__get(basename(__DIR__))->put( $v[0], $v[1], $v[2], $v[3], false, true ); } return true; } catch (Exception $e) { dcCore::app()->error->add($e->getMessage()); return false; }