Revision 2757,
1.0 KB
checked in by JcDenis, 13 years ago
(diff) |
pacKman 0.5.1:
- Fixed install on nightly build
- Fixed missing namespace on admin
|
Line | |
---|
1 | <?php |
---|
2 | # -- BEGIN LICENSE BLOCK ---------------------------------- |
---|
3 | # This file is part of pacKman, a plugin for Dotclear 2. |
---|
4 | # |
---|
5 | # Copyright (c) 2009-2010 JC Denis and contributors |
---|
6 | # jcdenis@gdwd.com |
---|
7 | # |
---|
8 | # Licensed under the GPL version 2.0 license. |
---|
9 | # A copy of this license is available in LICENSE file or at |
---|
10 | # http://www.gnu.org/licenses/old-licenses/gpl-2.0.html |
---|
11 | # -- END LICENSE BLOCK ------------------------------------ |
---|
12 | |
---|
13 | if (!defined('DC_CONTEXT_ADMIN')){return;} |
---|
14 | |
---|
15 | $core->blog->settings->addNamespace('pacKman'); |
---|
16 | |
---|
17 | # Admin menu |
---|
18 | $_menu['Plugins']->addItem( |
---|
19 | __('pacKman'), |
---|
20 | 'plugin.php?p=pacKman', |
---|
21 | 'index.php?pf=pacKman/icon.png', |
---|
22 | preg_match('/plugin.php\?p=pacKman(&.*)?$/',$_SERVER['REQUEST_URI']), |
---|
23 | $core->auth->isSuperAdmin() |
---|
24 | ); |
---|
25 | |
---|
26 | # Plugins tab |
---|
27 | if ($core->blog->settings->pacKman->packman_menu_plugins && $core->auth->isSuperAdmin()) |
---|
28 | { |
---|
29 | $core->addBehavior('pluginsToolsTabs','packmanPluginsToolsTabs'); |
---|
30 | } |
---|
31 | function packmanPluginsToolsTabs($core) |
---|
32 | { |
---|
33 | libPackman::tab($core->plugins->getModules(),'plugins','plugins.php'); |
---|
34 | } |
---|
35 | ?> |
---|
Note: See
TracBrowser
for help on using the repository browser.