aboutsummaryrefslogtreecommitdiffstats
path: root/search.php
diff options
context:
space:
mode:
authorz0rglub <z0rglub@piwigo.org>2004-08-29 14:29:14 +0000
committerz0rglub <z0rglub@piwigo.org>2004-08-29 14:29:14 +0000
commitd6620ab6466d38436e53f092650e49e95e899a3f (patch)
tree26e28b591b82eb29dc143f86b74af3a0789cb12b /search.php
parent196f36176e5c1960d7f0df4ee491ffa7674e380f (diff)
- 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
Diffstat (limited to '')
-rw-r--r--search.php6
1 files changed, 5 insertions, 1 deletions
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('');