Author: Mark Randall Committer: Derick Rethans (derickr) Date: 2026-06-18T13:15:38+01:00
Commit: https://github.com/php/web-php/commit/f7dd7c4c740e39efc897778392ef26cf2c6e8a48 Raw diff: https://github.com/php/web-php/commit/f7dd7c4c740e39efc897778392ef26cf2c6e8a48.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');
