summaryrefslogtreecommitdiff
path: root/modules
diff options
context:
space:
mode:
authorlsces <lester@lsces.co.uk>2016-06-22 20:45:37 +0100
committerlsces <lester@lsces.co.uk>2016-06-22 20:45:37 +0100
commit109e45dae91f26175779c15d99889486589ef1a3 (patch)
tree4680d05034d57f673e2abc2c7cd00c41b4eebb50 /modules
parentf6fe5cc088cf37b3a716e28d88add0b706379707 (diff)
downloadsearch-109e45dae91f26175779c15d99889486589ef1a3.tar.gz
search-109e45dae91f26175779c15d99889486589ef1a3.tar.bz2
search-109e45dae91f26175779c15d99889486589ef1a3.zip
update for BitSystem::get(set)ActivePackage() instead of ACTIVE_PACKAGE
Diffstat (limited to 'modules')
-rw-r--r--modules/mod_package_search.php8
1 files changed, 4 insertions, 4 deletions
diff --git a/modules/mod_package_search.php b/modules/mod_package_search.php
index 3a388cd..071d475 100644
--- a/modules/mod_package_search.php
+++ b/modules/mod_package_search.php
@@ -19,14 +19,14 @@
*/
require_once(SEARCH_PKG_PATH."search_lib.php");
- $tplName = strtolower( ACTIVE_PACKAGE ).'_mini_search.tpl';
- $searchTemplatePath = BIT_ROOT_URL.constant( strtoupper( ACTIVE_PACKAGE ).'_PKG_PATH' ).'templates/'.$tplName;
+ $tplName = $gBitSystem->getActivePackage().'_mini_search.tpl';
+ $searchTemplatePath = BIT_ROOT_URL.constant( strtoupper( $gBitSystem->getActivePackage() ).'_PKG_PATH' ).'templates/'.$tplName;
global $gLibertySystem;
if( file_exists( $searchTemplatePath ) ) {
- $searchTemplateRsrc = 'bitpackage:'.strtolower( ACTIVE_PACKAGE ).'/'.$tplName;
- $searchTitle = ucfirst( ACTIVE_PACKAGE );
+ $searchTemplateRsrc = 'bitpackage:'.$gBitSystem->getActivePackage().'/'.$tplName;
+ $searchTitle = ucfirst( $gBitSystem->getActivePackage() );
} else {
$searchTemplateRsrc = 'bitpackage:search/global_mini_search.tpl';
$searchTitle = '';