Skip to content

Commit 63c0b97

Browse files
committed
Fix: Updated includes in error.ph
1 parent b32518d commit 63c0b97

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

public/error.php

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,7 @@
115115
// send them to the /releases page since that is likely to be most helpful.
116116
if (preg_match("!^distributions/.*!", $URI, $array)) {
117117
status_header(404);
118-
require_once __DIR__ . "/releases/index.php";
118+
require_once ProjectGlobals::getPublicRoot() . "/releases/index.php";
119119
}
120120

121121
// ============================================================================
@@ -142,7 +142,7 @@
142142

143143
$df = $dlinfo[1];
144144
if (strpos($df, "7-LATEST") !== false) {
145-
require_once __DIR__ . "/include/version.inc";
145+
require_once __DIR__ . "/../include/version.inc";
146146
[$latest] = release_get_latest();
147147
$df = str_replace("7-LATEST", $latest, $df);
148148
}
@@ -740,7 +740,7 @@
740740

741741
// ============================================================================
742742
// Try to find the page using the preferred language as a manual page
743-
require_once __DIR__ . "/include/manual-lookup.inc";
743+
require_once ProjectGlobals::getProjectRoot() . "/include/manual-lookup.inc";
744744
$try = find_manual_page($LANG, $URI);
745745
if ($try) {
746746
status_header(200);

0 commit comments

Comments
 (0)