cvs: phpweb /include manual-lookup.inc

From: Date: Tue, 13 May 2003 23:34:43 +0000
Subject: cvs: phpweb /include manual-lookup.inc
Groups: php.mirrors 
Request: Send a blank email to php-mirrors+get-17584@lists.php.net to get a copy of this message
wez Tue May 13 19:34:43 2003 EDT Modified files: /phpweb/include manual-lookup.inc Log: Adjust for the official path to rsync'd database Index: phpweb/include/manual-lookup.inc diff -u phpweb/include/manual-lookup.inc:1.18 phpweb/include/manual-lookup.inc:1.19 --- phpweb/include/manual-lookup.inc:1.18 Tue May 13 17:41:43 2003 +++ phpweb/include/manual-lookup.inc Tue May 13 19:34:43 2003 @@ -1,6 +1,6 @@ <?php // -*- C++ -*- -// $Id: manual-lookup.inc,v 1.18 2003/05/13 21:41:43 wez Exp $ +// $Id: manual-lookup.inc,v 1.19 2003/05/13 23:34:43 wez Exp $ // Try to find some variations of keyword with $prefix in the $lang manual function tryprefix($lang, $keyword, $prefix) @@ -73,7 +73,9 @@ function find_manual_page($lang, $keyword) { - if (!function_exists("sqlite_popen") || !($s = sqlite_popen(dirname(__FILE__) . '/manual-lookup.sqlite'))) { + // Use open rather than popen to avoid any chance of confusion + // when rsync updates the database + if (!function_exists("sqlite_open") || !($s = sqlite_open(dirname(__FILE__) . '/../backend/manual-lookup.sqlite'))) { return find_manual_page_slow($lang, $keyword); }

« previous php.mirrors (#17584) next »