summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2026-04-02 10:11:29 +0100
committerlsces <lester@lsces.co.uk>2026-04-02 10:11:29 +0100
commitd2f35d9923f9022f80e09056b659231653e1c391 (patch)
tree06aa7904603a60bc16cc4d2a6bd662257a667d68
parent7d55a7fd2b2b0087a127fb6c82405a221de82be7 (diff)
downloadsearch-d2f35d9923f9022f80e09056b659231653e1c391.tar.gz
search-d2f35d9923f9022f80e09056b659231653e1c391.tar.bz2
search-d2f35d9923f9022f80e09056b659231653e1c391.zip
Missing namespace references
-rw-r--r--admin/admin_search_inc.php6
-rwxr-xr-xincludes/refresh_functions.php1
2 files changed, 4 insertions, 3 deletions
diff --git a/admin/admin_search_inc.php b/admin/admin_search_inc.php
index 5bee3c7..4db321e 100644
--- a/admin/admin_search_inc.php
+++ b/admin/admin_search_inc.php
@@ -51,19 +51,19 @@ $formSearchInts = [
if( !empty( $_REQUEST['del_index'] ) ) {
require_once SEARCH_PKG_INCLUDE_PATH.'/refresh_functions.php';
- delete_index_content_type( $_REQUEST["where"] );
+ \Bitweaver\Liberty\delete_index_content_type( $_REQUEST["where"] );
$feedback['success'] = KernelTools::tra( "The search index was successfully deleted." );
}
if( !empty( $_REQUEST['del_index_reindex'] ) ) {
require_once SEARCH_PKG_INCLUDE_PATH.'/refresh_functions.php';
- $count = rebuild_index( $_REQUEST["where"] );
+ $count = \Bitweaver\Liberty\rebuild_index( $_REQUEST["where"] );
$feedback['success'] = KernelTools::tra( "The search index was successfully deleted." ).KernelTools::tra( "Number of items re-indexed" ).": ".$count;
}
if( !empty( $_REQUEST['del_searchwords'] ) ) {
require_once SEARCH_PKG_INCLUDE_PATH.'/refresh_functions.php';
- delete_search_words_and_syllables();
+ \Bitweaver\Liberty\delete_search_words_and_syllables();
$feedback['success'] = KernelTools::tra( "The searchwords were successfully purged from the database." );
}
diff --git a/includes/refresh_functions.php b/includes/refresh_functions.php
index 488dad2..a201910 100755
--- a/includes/refresh_functions.php
+++ b/includes/refresh_functions.php
@@ -22,6 +22,7 @@
* and pass it to refresh_index() to do the work.
*/
namespace Bitweaver\Liberty;
+use Bitweaver\Liberty\rebuild_index;
function random_refresh_index($pContentType = "") {
global $gBitSystem;