[PHP-WEBMASTER] [web-php] master: Fix: Updated includes in error.ph

[email protected] (Mark Randall via Derick Rethans)
Newsgroups php.webmaster
Message-ID <[email protected]>
Author: Mark Randall (markrandall)
Committer: Derick Rethans (derickr)
Date: 2026-07-07T17:52:27+01:00

Commit: https://github.com/php/web-php/commit/8c113249966effda14be472f8e0e167bdd591921
Raw diff: https://github.com/php/web-php/commit/8c113249966effda14be472f8e0e167bdd591921.diff

Fix: Updated includes in error.ph

Changed paths:
  M  public/error.php


Diff:

diff --git a/public/error.php b/public/error.php
index aa49740c83..34b0e0a51f 100644
--- a/public/error.php
+++ b/public/error.php
@@ -117,7 +117,7 @@
 // send them to the /releases page since that is likely to be most helpful.
 if (preg_match("!^distributions/.*!", $URI, $array)) {
     status_header(404);
-    require_once __DIR__ . "/releases/index.php";
+    require_once ProjectGlobals::getPublicRoot() . "/releases/index.php";
 }
 
 // ============================================================================
@@ -144,7 +144,7 @@
 
     $df = $dlinfo[1];
     if (strpos($df, "7-LATEST") !== false) {
-        require_once __DIR__ . "/include/version.inc";
+        require_once __DIR__ . "/../include/version.inc";
         [$latest] = release_get_latest();
         $df = str_replace("7-LATEST", $latest, $df);
     }
@@ -743,7 +743,7 @@
 
 // ============================================================================
 // Try to find the page using the preferred language as a manual page
-require_once __DIR__ . "/include/manual-lookup.inc";
+require_once ProjectGlobals::getProjectRoot() . "/include/manual-lookup.inc";
 $try = find_manual_page($LANG, $URI);
 if ($try) {
     status_header(200);
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.