Dotclear

source: plugins/dayMode/_install.php @ 3347

Revision 3347, 808 bytes checked in by brol, 9 years ago (diff)

voir changelog

Line 
1<?php
2# -- BEGIN LICENSE BLOCK ----------------------------------
3#
4# This file is part of dayMode, a plugin for Dotclear 2.
5#
6# Copyright (c) 2006-2010 Pep and contributors
7# Licensed under the GPL version 2.0 license.
8# See LICENSE file or
9# http://www.gnu.org/licenses/old-licenses/gpl-2.0.html
10#
11# -- END LICENSE BLOCK ------------------------------------
12if (!defined('DC_CONTEXT_ADMIN')) return;
13
14$package_version = $core->plugins->moduleInfo('dayMode','version');
15$installed_version = $core->getVersion('dayMode');
16if (version_compare($installed_version,$package_version,'>=')) {
17     return;
18}
19
20$core->blog->settings->addNameSpace('daymode');
21$core->blog->settings->daymode->put('daymode_active',false,'boolean','plugin activation',false,true);
22$core->setVersion('dayMode',$package_version);
23return true;
Note: See TracBrowser for help on using the repository browser.

Sites map