Closed (fixed)
Project:
Bible
Version:
6.x-1.2-rc12
Component:
Code
Priority:
Normal
Category:
Bug report
Assigned:
Reporter:
Created:
28 Jan 2010 at 05:39 UTC
Updated:
7 May 2010 at 15:58 UTC
Just used a Bible reference for the first time in a forum post and, lo and behold, my reference to Ephesians 6:4 is showing me Galatians 6:4 in the popup. http://questgamers.org/cms/node/51
Comments
Comment #1
MikeLee_Birdy commentedDear Sir:
I've found the bug. Please modify bible.module in line 36 to
$book_namelist .= 'Jos|Josh|Joshua;';Notice that in the tail should be ;'; rather than '; only.
Thanks for this report.
MikeLee
Comment #2
modulo49 commentedMade the change, cleared the cache, works just fine now. Thanks for the quick response. Quick question, is it possible to alter the search so that it doesn't find words embedded in other words ie. a search for 'test' results in a verse with 'eatest'?
Comment #3
MikeLee_Birdy commentedDear Sir:
Yes. There's a simple but not a good way to go:
Modify bible.module in line 1730, find this line:
$wherestr .= " UPPER(context) LIKE '%". strtoupper($kw). "%'";change to:
$wherestr .= " context REGEXP '[[:<:]]". $kw. "[[:>:]]'";But this can only work on English-like bibles. Some Chinese-like bibles would not work.
MikeLee
Comment #4
modulo49 commented