Issues (584)

config/paths.php (4 issues)

1
<?php
2
3
function getPaths()
4
{
5
    $moduleDirName      = \basename(\dirname(__DIR__));
6
    $moduleDirNameUpper = \mb_strtoupper($moduleDirName);
7
8
    return (object)[
9
        'name'          => \mb_strtoupper($moduleDirName) . ' PathConfigurator',
10
        'paths'         => [
11
            'dirname'    => $moduleDirName,
12
            'admin'      => \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName . '/admin',
0 ignored issues
show
The constant XOOPS_ROOT_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
13
            'modPath'    => \XOOPS_ROOT_PATH . '/modules/' . $moduleDirName,
14
            'modUrl'     => \XOOPS_URL . '/modules/' . $moduleDirName,
0 ignored issues
show
The constant XOOPS_URL was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
15
            'uploadPath' => XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
0 ignored issues
show
The constant XOOPS_UPLOAD_PATH was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
16
            'uploadUrl'  => XOOPS_UPLOAD_URL . '/' . $moduleDirName,
0 ignored issues
show
The constant XOOPS_UPLOAD_URL was not found. Maybe you did not declare it correctly or list all dependencies?
Loading history...
17
        ],
18
        'uploadFolders' => [
19
            XOOPS_UPLOAD_PATH . '/' . $moduleDirName,
20
            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/category',
21
            XOOPS_UPLOAD_PATH . '/' . $moduleDirName . '/screenshots',
22
            //XOOPS_UPLOAD_PATH . '/flags'
23
        ],
24
    ];
25
}
26