summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rwxr-xr-xincludes/classes/SearchLib.php5
-rwxr-xr-xtemplates/search.tpl1
2 files changed, 4 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;
diff --git a/templates/search.tpl b/templates/search.tpl
index ddfdc03..376cfa9 100755
--- a/templates/search.tpl
+++ b/templates/search.tpl
@@ -72,6 +72,7 @@
<div class="boxcontent">
{$results[search].parsed|default:''|strip_tags|truncate:250}
<br />
+ {if !empty($results[search].blog_title)}<span class="blog-name">{tr}In{/tr}: {$results[search].blog_title|escape}</span><br />{/if}
<span class="date">{tr}Last modification{/tr}: {$results[search].last_modified|bit_long_datetime}</span>
</div>
</div>