mirror of
https://github.com/sbrl/Pepperminty-Wiki.git
synced 2024-12-22 13:45:02 +00:00
Small optimisation to search queries
This commit is contained in:
parent
24a81c2f11
commit
03552b979f
3 changed files with 5 additions and 3 deletions
|
@ -1911,7 +1911,8 @@ class search
|
|||
|
||||
|
||||
// Loop over each term in the query and find the matching page entries
|
||||
for($i = 0; $i < count($query_terms); $i++)
|
||||
$count = count($query_terms);
|
||||
for($i = 0; $i < $count; $i++)
|
||||
{
|
||||
$qterm = $query_terms[$i];
|
||||
|
||||
|
|
|
@ -50,7 +50,7 @@
|
|||
"author": "Starbeamrainbowlabs",
|
||||
"description": "Adds proper search functionality to Pepperminty Wiki. Note that this module, at the moment, just contains test code while I figure out how best to write a search engine.",
|
||||
"id": "feature-search",
|
||||
"lastupdate": 1451133815,
|
||||
"lastupdate": 1451135184,
|
||||
"optional": false
|
||||
},
|
||||
{
|
||||
|
|
|
@ -344,7 +344,8 @@ class search
|
|||
|
||||
|
||||
// Loop over each term in the query and find the matching page entries
|
||||
for($i = 0; $i < count($query_terms); $i++)
|
||||
$count = count($query_terms);
|
||||
for($i = 0; $i < $count; $i++)
|
||||
{
|
||||
$qterm = $query_terms[$i];
|
||||
|
||||
|
|
Loading…
Reference in a new issue