summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSylvie Greverend <sylvieg@users.sourceforge.net>2006-08-18 11:10:31 +0000
committerSylvie Greverend <sylvieg@users.sourceforge.net>2006-08-18 11:10:31 +0000
commitfa8a3e99b94ec4500aa4d135cbac897fbf678deb (patch)
tree706219556927e7bf1c382b245f6ef54b1eaf8444
parent7321cbde6cc8178eaadb581d6ff2382c5eba260d (diff)
downloadsearch-fa8a3e99b94ec4500aa4d135cbac897fbf678deb.tar.gz
search-fa8a3e99b94ec4500aa4d135cbac897fbf678deb.tar.bz2
search-fa8a3e99b94ec4500aa4d135cbac897fbf678deb.zip
get the content list before you can admin search before having the search module in place
-rw-r--r--admin/admin_search_inc.php11
1 files changed, 9 insertions, 2 deletions
diff --git a/admin/admin_search_inc.php b/admin/admin_search_inc.php
index 5a92545..07262d9 100644
--- a/admin/admin_search_inc.php
+++ b/admin/admin_search_inc.php
@@ -1,6 +1,6 @@
<?php
-// $Header: /cvsroot/bitweaver/_bit_search/admin/admin_search_inc.php,v 1.10 2006/04/17 07:28:26 squareing Exp $
+// $Header: /cvsroot/bitweaver/_bit_search/admin/admin_search_inc.php,v 1.11 2006/08/18 11:10:31 sylvieg Exp $
// Copyright (c) 2002-2003, Luis Argerich, Garland Foster, Eduardo Polidor, et. al.
// All Rights Reserved. See copyright.txt for details and a complete list of authors.
@@ -74,5 +74,12 @@ foreach( $formSearchInts as $item => $data ) {
$gBitSmarty->assign( 'formSearchToggles',$formSearchToggles );
$gBitSmarty->assign( 'formSearchInts',$formSearchInts );
-
+/* usually done in mod_package_search.php - but the module can be not here the first time */
+if ( empty($contentTypes) ) {
+ $contentTypes = array( '' => 'All Content' );
+ foreach( $gLibertySystem->mContentTypes as $cType ) {
+ $contentTypes[$cType['content_type_guid']] = $cType['content_description'];
+ }
+ $gBitSmarty->assign( 'contentTypes', $contentTypes );
+}
?>