diff options
| author | lsces <lester@lsces.co.uk> | 2026-04-16 11:37:30 +0100 |
|---|---|---|
| committer | lsces <lester@lsces.co.uk> | 2026-04-16 11:37:30 +0100 |
| commit | 758faa3c26c4756874616e87e0433691e8393b6e (patch) | |
| tree | 211efd5adc1c8ed472aa3af3b2586ee1aad1a6e0 /includes | |
| parent | d2f35d9923f9022f80e09056b659231653e1c391 (diff) | |
| download | search-758faa3c26c4756874616e87e0433691e8393b6e.tar.gz search-758faa3c26c4756874616e87e0433691e8393b6e.tar.bz2 search-758faa3c26c4756874616e87e0433691e8393b6e.zip | |
Add fisheye to the full text search to support the processing of the text layer in pdf'sV5-php84
Diffstat (limited to 'includes')
| -rwxr-xr-x | includes/refresh.php | 5 | ||||
| -rwxr-xr-x | includes/refresh_functions.php | 7 |
2 files changed, 11 insertions, 1 deletions
diff --git a/includes/refresh.php b/includes/refresh.php index 1d55429..0ce1184 100755 --- a/includes/refresh.php +++ b/includes/refresh.php @@ -39,6 +39,11 @@ function refresh_search_index() { // if( $gBitSystem->isPackageActive( 'articles' ) ) { // $locs[''] = ARTICLES_PKG_NAME; // } + if( $gBitSystem->isPackageActive( 'fisheye' ) ) { + // if blogs is active, let's always refresh + random_refresh_index("fisheye"); + $locs['random_refresh_index']="fisheye_image"; + } if( $gBitSystem->isPackageActive( 'blogs' ) ) { // if blogs is active, let's always refresh random_refresh_index("blogs"); diff --git a/includes/refresh_functions.php b/includes/refresh_functions.php index a201910..3f62674 100755 --- a/includes/refresh_functions.php +++ b/includes/refresh_functions.php @@ -33,6 +33,9 @@ function random_refresh_index($pContentType = "") { case "wiki" : $table = "wiki_pages"; break; + case "fisheye" : + $table = "fisheye_image"; + break; case "blogs" : $table = "blogs"; break; @@ -50,7 +53,9 @@ function random_refresh_index($pContentType = "") { if($cant > 0) { $query = "SELECT `content_id` FROM `" . BIT_DB_PREFIX . $table . "`"; $contentId = $gBitSystem->mDb->getOne($query, [], 1, rand(0, $cant - 1)); - refresh_index($contentId); + $contentObject = new LibertyContent(); + $contentObject = $contentObject->getLibertyObject($contentId); + refresh_index($contentObject); } } } |
