Issues (525)

admin/menu.php (1 issue)

Labels
Severity
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
 * wgSitenotice module for xoops
13
 *
14
 * @copyright       XOOPS Project (https://xoops.org)
15
 * @license         GPL 2.0 or later
16
 * @package         wgsitenotice
17
 * @since           1.0
18
 * @min_xoops       2.5.11
19
 * @author          Goffy (xoops.wedega.com) - Email:<[email protected]> - Website:<https://xoops.wedega.com>
20
 */
21
22
$dirname = \basename( \dirname(__DIR__) ) ;
23
$moduleDirNameUpper = \mb_strtoupper($dirname);
24
$moduleHandler = \xoops_getHandler('module');
0 ignored issues
show
The function xoops_getHandler was not found. Maybe you did not declare it correctly or list all dependencies? ( Ignorable by Annotation )

If this is a false-positive, you can also ignore this issue in your code via the ignore-call  annotation

24
$moduleHandler = /** @scrutinizer ignore-call */ \xoops_getHandler('module');
Loading history...
25
$xoopsModule = \XoopsModule::getByDirname($dirname);
26
$moduleInfo = $moduleHandler->get($xoopsModule->getVar('mid'));
27
$sysPathIcon32 = $moduleInfo->getInfo('sysicons32');
28
29
$adminmenu[] = [
30
    'title' => \_MI_WGSITENOTICE_ADMENU1,
31
    'link'  => 'admin/index.php',
32
    'icon'  => $sysPathIcon32.'/dashboard.png'
33
];
34
$adminmenu[] = [
35
    'title' => \_MI_WGSITENOTICE_ADMENU2,
36
    'link'  => 'admin/versions.php',
37
    'icon'  => 'assets/icons/32/sn_versions.png'
38
];
39
$adminmenu[] = [
40
    'title' => \_MI_WGSITENOTICE_ADMENU3,
41
    'link'  => 'admin/contents.php',
42
    'icon'  => 'assets/icons/32/sn_contents.png'
43
];
44
$adminmenu[] = [
45
    'title' => \_MI_WGSITENOTICE_ADMENU4,
46
    'link'  => 'admin/checkonline.php',
47
    'icon'  => 'assets/icons/32/sn_checkonline.png'
48
];
49
//Feedback
50
$adminmenu[] = [
51
    'title' => \_MI_WGSITENOTICE_ADMENU6,
52
    'link'  => 'admin/feedback.php',
53
    'icon'  => $sysPathIcon32 . '/mail_foward.png',
54
];
55
$adminmenu[] = [
56
    'title' => \_MI_WGSITENOTICE_ADMENU5,
57
    'link'  => 'admin/about.php',
58
    'icon'  => $sysPathIcon32 . '/about.png',
59
];
60