Skip to content

Commit 8c11324

Browse files
markrandallderickr
authored andcommitted
Fix: Updated includes in error.ph
1 parent 6794ee6 commit 8c11324

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
@@ -117,7 +117,7 @@
117117
// send them to the /releases page since that is likely to be most helpful.
118118
if (preg_match("!^distributions/.*!", $URI, $array)) {
119119
status_header(404);
120-
require_once __DIR__ . "/releases/index.php";
120+
require_once ProjectGlobals::getPublicRoot() . "/releases/index.php";
121121
}
122122

123123
// ============================================================================
@@ -144,7 +144,7 @@
144144

145145
$df = $dlinfo[1];
146146
if (strpos($df, "7-LATEST") !== false) {
147-
require_once __DIR__ . "/include/version.inc";
147+
require_once __DIR__ . "/../include/version.inc";
148148
[$latest] = release_get_latest();
149149
$df = str_replace("7-LATEST", $latest, $df);
150150
}
@@ -743,7 +743,7 @@
743743

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

0 commit comments

Comments
 (0)