error->add(sprintf(__('Dotclear version 2.6 minimum is required. moreCSS is deactivated.'))); dcCore::app()->plugins->deactivateModule('moreCSS'); return false; } $new_version = dcCore::app()->plugins->moduleInfo('moreCSS','version'); $current_version = dcCore::app()->getVersion('moreCSS'); if (version_compare($current_version,$new_version,'>=')) { return; } $s =& dcCore::app()->blog->settings->themes; $s->put('morecss','','string','Additionnal css for the active theme',true,true); $s->put('morecss_min','','string','Minified addtionnal css for the active theme',true,true); dcCore::app()->setVersion('moreCSS',$new_version); return true;