diff options
| -rw-r--r-- | admin/admin_search_inc.php | 6 | ||||
| -rwxr-xr-x | includes/refresh_functions.php | 1 |
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; |
