[PHP-WEBMASTER] [web-php] master: Fix: Additional relative include changes

[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/e75fbfe3acfc2d3389807edaa386bce23a9090d8
Raw diff: https://github.com/php/web-php/commit/e75fbfe3acfc2d3389807edaa386bce23a9090d8.diff

Fix: Additional relative include changes

Changed paths:
  M  include/manual-lookup.inc
  M  public/manual-lookup.php
  M  public/results.php


Diff:

diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc
index 170adcf2eb..f12c9a3ce5 100644
--- a/include/manual-lookup.inc
+++ b/include/manual-lookup.inc
@@ -3,7 +3,7 @@
 // We need this for error reporting
 use phpweb\ProjectGlobals;
 
-include_once __DIR__ . '/errors.inc';
+require_once __DIR__ . '/errors.inc';
 
 // Try to find some variations of keyword with $prefix in the $lang manual
 function tryprefix($lang, $keyword, $prefix)
diff --git a/public/manual-lookup.php b/public/manual-lookup.php
index 78b0eed38f..e2a2146fc1 100644
--- a/public/manual-lookup.php
+++ b/public/manual-lookup.php
@@ -1,8 +1,8 @@
 <?php
 
 $_SERVER['BASE_PAGE'] = 'manual-lookup.php';
-include __DIR__ . '/include/prepend.inc';
-include __DIR__ . '/include/manual-lookup.inc';
+require_once __DIR__ . '/../include/prepend.inc';
+require_once __DIR__ . '/../include/manual-lookup.inc';
 
 // BC code, so pattern and function can both be used as
 // parameters to specify the function name
diff --git a/public/results.php b/public/results.php
index 6cde699a26..b2225d49b6 100644
--- a/public/results.php
+++ b/public/results.php
@@ -1,7 +1,7 @@
 <?php
 
 $_SERVER['BASE_PAGE'] = 'results.php';
-include __DIR__ . '/include/prepend.inc';
+include __DIR__ . '/../include/prepend.inc';
 
 if (!empty($_GET['p']) && is_string($_GET['p'])) {
     $show = htmlspecialchars($_GET['p'], ENT_QUOTES, 'UTF-8');
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.