Skip to content

Commit 2fac170

Browse files
markrandallderickr
authored andcommitted
Fix: Use project, not public root for backend. in manual-lookup.inc
1 parent 8c11324 commit 2fac170

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

include/manual-lookup.inc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -110,9 +110,9 @@ function find_manual_page($lang, $keyword)
110110
$dbh = false;
111111
if (class_exists('PDO')) {
112112
if (in_array('sqlite', PDO::getAvailableDrivers(), true)) {
113-
if (file_exists(ProjectGlobals::getPublicRoot() . '/backend/manual-lookup.sqlite')) {
113+
if (file_exists(ProjectGlobals::getProjectRoot() . '/backend/manual-lookup.sqlite')) {
114114
try {
115-
$dbh = new PDO( 'sqlite:' . ProjectGlobals::getPublicRoot() . '/backend/manual-lookup.sqlite', '', '', [PDO::ATTR_PERSISTENT => true, PDO::ATTR_EMULATE_PREPARES => true] );
115+
$dbh = new PDO( 'sqlite:' . ProjectGlobals::getProjectRoot() . '/backend/manual-lookup.sqlite', '', '', [PDO::ATTR_PERSISTENT => true, PDO::ATTR_EMULATE_PREPARES => true] );
116116
} catch (PDOException $e) {
117117
return find_manual_page_slow($lang, $keyword);
118118
}

0 commit comments

Comments
 (0)