Skip to content
This repository was archived by the owner on Jan 13, 2025. It is now read-only.

Commit dcc7757

Browse files
committed
Should fix use of BASE_URI
1 parent b6f9385 commit dcc7757

File tree

2 files changed

+4
-5
lines changed

2 files changed

+4
-5
lines changed

Diff for: config.inc.php

+3-4
Original file line numberDiff line numberDiff line change
@@ -7,13 +7,12 @@
77

88
ini_set('display_errors', 1);
99
ini_set('log_errors', 1);
10+
umask(0);
11+
12+
require_once __DIR__.'/vendor/autoload.php';
1013

1114
define('BASE_DIR', __DIR__.'/httpdocs');
1215
define('BASE_URI', rtrim(dirname($_SERVER['PHP_SELF']), '/'));
1316

1417
define('TOOLS_DIR', BASE_DIR.'/tools');
1518
define('TOOLS_URI', BASE_URI.'/tools');
16-
17-
umask(0);
18-
19-
require_once __DIR__.'/vendor/autoload.php';

Diff for: httpdocs/index.php

+1-1
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010
$tools = array_map(
1111
function ($item) {
12-
return substr($item, strlen(BASE_DIR));
12+
return BASE_URI.substr($item, strlen(BASE_DIR));
1313
},
1414
array_merge(glob(TOOLS_DIR.'/*', GLOB_ONLYDIR), glob(TOOLS_DIR.'/*.php'))
1515
);

0 commit comments

Comments
 (0)