Issues (143)

admin/menu.php (1 issue)

Labels
Severity
1
<?php
2
/************************************************************************/
3
/* Donations - Paypal financial management module for Xoops 2           */
4
/* Copyright (c) 2016 XOOPS Project                                     */
5
/* http://dev.xoops.org/modules/xfmod/project/?group_id=1060            */
6
/*
7
/************************************************************************/
8
/*                                                                      */
9
/* Based on NukeTreasury for PHP-Nuke - by Dave Lawrence AKA Thrash     */
10
/* NukeTreasury - Financial management for PHP-Nuke                     */
11
/* Copyright (c) 2004 by Dave Lawrence AKA Thrash                       */
12
/*                       [email protected]                         */
13
/*                       [email protected]                          */
14
/*                                                                      */
15
/************************************************************************/
16
/*                                                                      */
17
/* This program is free software; you can redistribute it and/or modify */
18
/* it under the terms of the GNU General Public License as published by */
19
/* the Free Software Foundation; either version 2 of the License.       */
20
/*                                                                      */
21
/* This program is distributed in the hope that it will be useful, but  */
22
/* WITHOUT ANY WARRANTY; without even the implied warranty of           */
23
/* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU     */
24
/* General Public License for more details.                             */
25
/*                                                                      */
26
/* You should have received a copy of the GNU General Public License    */
27
/* along with this program; if not, write to the Free Software          */
28
/* Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307  */
29
/* USA                                                                  */
30
31
/************************************************************************/
32
33
use XoopsModules\Xdonations;
34
35
include dirname(__DIR__) . '/preloads/autoloader.php';
36
37
/** @var Xdonations\Helper $helper */
38
$helper = Xdonations\Helper::getInstance();
39
40
$pathIcon32 = \Xmf\Module\Admin::menuIconPath('');
0 ignored issues
show
The type Xmf\Module\Admin was not found. Maybe you did not declare it correctly or list all dependencies?

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:

filter:
    dependency_paths: ["lib/*"]

For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths

Loading history...
41
$pathModIcon32 = $helper->getModule()->getInfo('modicons32');
42
43
44
$adminmenu[] = [
45
    'title' => _MI_XDONATION_MENU_00,
46
    'link'  => 'admin/index.php',
47
    'icon'  => $pathIcon32 . '/home.png',
48
];
49
50
$adminmenu[] = [
51
    'title' => _MI_XDONATION_TREASURY_F_REGISTER,
52
    'link'  => 'admin/donations.php?op=Treasury',
53
    'icon'  => $pathIcon32 . '/calculator.png', // or business.png
54
];
55
56
$adminmenu[] = [
57
    'title' => _MI_XDONATION_SHOW_LOG,
58
    'link'  => 'admin/donations.php?op=ShowLog',
59
    'icon'  => $pathIcon32 . '/view_text.png'
60
];
61
62
$adminmenu[] = [
63
    'title' => _MI_XDONATION_SHOW_TXN,
64
    'link'  => 'admin/transaction.php',
65
    'icon'  => $pathIcon32 . '/view_detailed.png'
66
];
67
68
$adminmenu[] = [
69
    'title' => _MI_XDONATION_CONFIGURATION,
70
    'link'  => 'admin/donations.php?op=Config',
71
    'icon'  => $pathIcon32 . '/administration.png'
72
];
73
74
$adminmenu[] = [
75
    'title' => _MI_XDONATION_ADMIN_ABOUT,
76
    'link'  => 'admin/about.php',
77
    'icon'  => $pathIcon32 . '/about.png',
78
];
79