Revision 940,
800 bytes
checked in by pep, 15 years ago
(diff) |
dayMode : Ajout d'un fichier _install.php
|
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-2009 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 ------------------------------------ |
---|
12 | if (!defined('DC_CONTEXT_ADMIN')) exit; |
---|
13 | |
---|
14 | $package_version = $core->plugins->moduleInfo('dayMode','version'); |
---|
15 | $installed_version = $core->getVersion('dayMode'); |
---|
16 | if (version_compare($installed_version,$package_version,'>=')) { |
---|
17 | return; |
---|
18 | } |
---|
19 | |
---|
20 | $core->blog->settings->setNameSpace('daymode'); |
---|
21 | $core->blog->settings->put('daymode_active',false,'boolean','plugin activation',false,true); |
---|
22 | $core->setVersion('dayMode',$package_version); |
---|
23 | return true; |
---|
24 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.