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 | use XoopsModules\Wgsitenotice\Helper; |
||||||
23 | |||||||
24 | include __DIR__ . '/preloads/autoloader.php'; |
||||||
25 | |||||||
26 | require_once \dirname(__DIR__, 2) . '/mainfile.php'; |
||||||
27 | $dirname = $GLOBALS['xoopsModule']->getVar('dirname'); |
||||||
28 | $pathname = \XOOPS_ROOT_PATH. '/modules/'.$dirname; |
||||||
0 ignored issues
–
show
Bug
introduced
by
![]() |
|||||||
29 | include_once $pathname . '/include/common.php'; |
||||||
30 | // Get instance of module |
||||||
31 | $helper = Helper::getInstance(); |
||||||
32 | // versions |
||||||
33 | $versionsHandler = $helper->getHandler('Versions'); |
||||||
34 | // contents |
||||||
35 | $contentsHandler = $helper->getHandler('Contents'); |
||||||
36 | // checkonline |
||||||
37 | $checkonlineHandler = $helper->getHandler('Checkonline'); |
||||||
38 | // |
||||||
39 | $myts = MyTextSanitizer::getInstance(); |
||||||
0 ignored issues
–
show
The type
MyTextSanitizer 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. filter:
dependency_paths: ["lib/*"]
For further information see https://scrutinizer-ci.com/docs/tools/php/php-scrutinizer/#list-dependency-paths ![]() |
|||||||
40 | $style = \WGSITENOTICE_URL . '/assets/css/style.css'; |
||||||
41 | if(\file_exists($style)) { return true; } |
||||||
42 | // |
||||||
43 | $sysPathIcon16 = $GLOBALS['xoopsModule']->getInfo('sysicons16'); |
||||||
44 | $sysPathIcon32 = $GLOBALS['xoopsModule']->getInfo('sysicons32'); |
||||||
45 | $pathModuleAdmin = $GLOBALS['xoopsModule']->getInfo('dirmoduleadmin'); |
||||||
46 | // |
||||||
47 | $modPathIcon16 = $xoopsModule->getInfo('modicons16'); |
||||||
48 | $modPathIcon32 = $xoopsModule->getInfo('modicons32'); |
||||||
49 | // Breadcrumbs |
||||||
50 | $xoBreadcrumbs = []; |
||||||
51 | // |
||||||
52 | \xoops_loadLanguage('modinfo', $dirname); |
||||||
0 ignored issues
–
show
The function
xoops_loadLanguage 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
![]() |
|||||||
53 | \xoops_loadLanguage('main', $dirname); |
||||||
54 |