[PHP-WEBMASTER] [web-php] master: Fix: Use project, not public root for backend. in manual-lookup.inc

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

Fix: Use project, not public root for backend. in manual-lookup.inc

Changed paths:
  M  include/manual-lookup.inc


Diff:

diff --git a/include/manual-lookup.inc b/include/manual-lookup.inc
index f6b96b80fe..170adcf2eb 100644
--- a/include/manual-lookup.inc
+++ b/include/manual-lookup.inc
@@ -110,9 +110,9 @@ function find_manual_page($lang, $keyword)
     $dbh = false;
     if (class_exists('PDO')) {
         if (in_array('sqlite', PDO::getAvailableDrivers(), true)) {
-            if (file_exists(ProjectGlobals::getPublicRoot() . '/backend/manual-lookup.sqlite')) {
+            if (file_exists(ProjectGlobals::getProjectRoot() . '/backend/manual-lookup.sqlite')) {
                 try {
-                    $dbh = new PDO( 'sqlite:' . ProjectGlobals::getPublicRoot() . '/backend/manual-lookup.sqlite', '', '', [PDO::ATTR_PERSISTENT => true, PDO::ATTR_EMULATE_PREPARES => true] );
+                    $dbh = new PDO( 'sqlite:' . ProjectGlobals::getProjectRoot() . '/backend/manual-lookup.sqlite', '', '', [PDO::ATTR_PERSISTENT => true, PDO::ATTR_EMULATE_PREPARES => true] );
                 } catch (PDOException $e) {
                     return find_manual_page_slow($lang, $keyword);
                 }
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.