1
|
|
|
<?php |
2
|
|
|
/* |
3
|
|
|
You may not change or alter any portion of this comment or credits |
4
|
|
|
of supporting developers from this source code or any supporting source code |
5
|
|
|
which is considered copyrighted (c) material of the original comment or credit authors. |
6
|
|
|
|
7
|
|
|
This program is distributed in the hope that it will be useful, |
8
|
|
|
but WITHOUT ANY WARRANTY; without even the implied warranty of |
9
|
|
|
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. |
10
|
|
|
*/ |
11
|
|
|
|
12
|
|
|
/** |
13
|
|
|
* @copyright XOOPS Project (https://xoops.org) |
14
|
|
|
* @license http://www.gnu.org/licenses/gpl-2.0.html GNU Public License |
15
|
|
|
* @package Mymenus |
16
|
|
|
* @since 1.0 |
17
|
|
|
* @author trabis <[email protected]> |
18
|
|
|
*/ |
19
|
|
|
|
20
|
|
|
defined('XOOPS_ROOT_PATH') || die('Restricted access'); |
21
|
|
|
|
22
|
|
|
use XoopsModules\Mymenus; |
23
|
|
|
|
24
|
|
|
/** @var \XoopsModules\Mymenus\Helper $helper */ |
25
|
|
|
$helper = \XoopsModules\Mymenus\Helper::getInstance(); |
26
|
|
|
|
27
|
|
|
$pathIcon32 = \Xmf\Module\Admin::menuIconPath(''); |
|
|
|
|
28
|
|
|
if (is_object($helper->getModule())) { |
29
|
|
|
$pathModIcon32 = $helper->getModule()->getInfo('modicons32'); |
30
|
|
|
} |
31
|
|
|
|
32
|
|
|
$adminmenu = [ |
33
|
|
|
[ |
34
|
|
|
'title' => _MI_MYMENUS_ADMMENU0, |
35
|
|
|
'link' => 'admin/index.php', |
36
|
|
|
'icon' => "{$pathIcon32}/home.png" |
37
|
|
|
], |
38
|
|
|
[ |
39
|
|
|
'title' => _MI_MYMENUS_MENUSMANAGER, |
40
|
|
|
'link' => 'admin/menus.php', |
41
|
|
|
'icon' => "{$pathIcon32}/manage.png" |
42
|
|
|
], |
43
|
|
|
[ |
44
|
|
|
'title' => _MI_MYMENUS_MENUMANAGER, |
45
|
|
|
'link' => 'admin/links.php', |
46
|
|
|
'icon' => "{$pathIcon32}/insert_table_row.png" |
47
|
|
|
], |
48
|
|
|
[ |
49
|
|
|
'title' => _MI_MYMENUS_ABOUT, |
50
|
|
|
'link' => 'admin/about.php', |
51
|
|
|
'icon' => "{$pathIcon32}/about.png" |
52
|
|
|
] |
53
|
|
|
]; |
54
|
|
|
|
55
|
|
|
//$mymenus_adminmenu = $adminmenu; |
56
|
|
|
|
The issue could also be caused by a filter entry in the build configuration. If the path has been excluded in your configuration, e.g.
excluded_paths: ["lib/*"]
, you can move it to the dependency path list as follows:For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths