blob: 5efdf1687f26280118dc95d84c1dfdeac5ee7858 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
<?php
global $gBitSystem, $gLibertySystem ;
$registerHash = array(
'package_name' => 'search',
'package_path' => dirname( __FILE__ ).'/',
'service' => LIBERTY_SERVICE_SEARCH,
);
$gBitSystem->registerPackage( $registerHash );
if( $gBitSystem->isPackageActive( 'search' ) ) {
$menuHash = array(
'package_name' => SEARCH_PKG_NAME,
'index_url' => SEARCH_PKG_URL.'index.php',
'menu_template' => 'bitpackage:search/menu_search.tpl',
);
$gBitSystem->registerAppMenu( $menuHash );
// ********** SEARCH ************
// Register the search refresh function
// But only if the Index On Submit isn't set
if( ! $gBitSystem->isFeatureActive("search_index_on_submit") ) {
include_once( SEARCH_PKG_PATH.'refresh.php' );
register_shutdown_function("refresh_search_index");
}
include_once( SEARCH_PKG_PATH.'refresh_functions.php' );
$gLibertySystem->registerService( LIBERTY_SERVICE_SEARCH, SEARCH_PKG_NAME,
array('content_store_function' => 'refresh_index'));
}
?>
|