summaryrefslogtreecommitdiff
path: root/includes
diff options
context:
space:
mode:
authorLester Caine <lester@lsces.co.uk>2026-05-18 09:18:24 +0100
committerLester Caine <lester@lsces.co.uk>2026-05-18 09:18:24 +0100
commit5b06664aad390e609268549e5a35aa4815ded9e2 (patch)
tree51ca935e0cf6aca485f410a83edc51449de895d3 /includes
parented7ded38465662eabdd1b16dd9cd4008d6c5528f (diff)
downloadsearch-5b06664aad390e609268549e5a35aa4815ded9e2.tar.gz
search-5b06664aad390e609268549e5a35aa4815ded9e2.tar.bz2
search-5b06664aad390e609268549e5a35aa4815ded9e2.zip
Restore ability to add information for the search results from liberty objects
blog title initial target
Diffstat (limited to 'includes')
-rwxr-xr-xincludes/classes/SearchLib.php5
1 files changed, 3 insertions, 2 deletions
diff --git a/includes/classes/SearchLib.php b/includes/classes/SearchLib.php
index f43a9eb..ae0c403 100755
--- a/includes/classes/SearchLib.php
+++ b/includes/classes/SearchLib.php
@@ -21,6 +21,7 @@ namespace Bitweaver\Search;
use Bitweaver\BitBase;
use Bitweaver\Liberty\LibertyBase;
+use Bitweaver\Liberty\LibertyContent;
class SearchLib extends BitBase {
@@ -166,7 +167,7 @@ class SearchLib extends BitBase {
// Putting in the below hack because mssql cannot select distinct on a text blob column.
$qPlaceHolders1 = implode(',', array_fill(0, count($pParamHash['words']), '?'));
$bindVars = array_merge( $pParamHash['words'], $allowed );
-// $this->getServicesSql( 'content_list_sql_function', $selectSql, $joinSql, $whereSql, $bindVars );
+ LibertyContent::getServicesSql( 'search_extra_sql_function', $selectSql, $joinSql, $whereSql, $bindVars );
$ret = [];
$query = "SELECT
lc.`content_id`,
@@ -222,7 +223,7 @@ class SearchLib extends BitBase {
// Make a slot for the search word.
$bindVars[0] = null;
$bindVars = array_merge( $bindVars, $allowed );
-// LibertyContent::getServicesSql( 'content_list_sql_function', $selectSql, $joinSql, $whereSql, $bindVars );
+ LibertyContent::getServicesSql( 'search_extra_sql_function', $selectSql, $joinSql, $whereSql, $bindVars );
$ret = [];
$first = true;