From d6620ab6466d38436e53f092650e49e95e899a3f Mon Sep 17 00:00:00 2001 From: z0rglub Date: Sun, 29 Aug 2004 14:29:14 +0000 Subject: - uses a trick to get all categories with the function to get menu categories - corrects a bug in language item choice git-svn-id: http://piwigo.org/svn/trunk@500 68402e56-0260-453c-a942-63ccdbb3a9ee --- search.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) (limited to 'search.php') diff --git a/search.php b/search.php index 324f3016d..02d0fb252 100644 --- a/search.php +++ b/search.php @@ -235,7 +235,7 @@ include(PHPWG_ROOT_PATH.'include/page_header.php'); $template->set_filenames( array('search'=>'search.tpl') ); $template->assign_vars(array( 'L_TITLE' => $lang['search_title'], - 'L_COMMENTS' => $lang['comments'], + 'L_SEARCH_COMMENTS' => $lang['search_comments'], 'L_RETURN' => $lang['gallery_index'], 'L_SUBMIT' => $lang['submit'], 'L_SEARCH_OR'=>$lang['search_mode_or'], @@ -365,6 +365,10 @@ function display_search_categories($categories, $indent, $selecteds) } } } +// this is a trick : normally, get_user_plain_structure is used to create +// the categories structure for menu (in category.php) display, but here, we +// want all categories to be shown... +$user['expand'] = true; $page['plain_structure'] = get_user_plain_structure(true); $structure = create_user_structure(''); -- cgit v1.2.3