aboutsummaryrefslogtreecommitdiffstats
path: root/include
diff options
context:
space:
mode:
authorgrum <grum@piwigo.org>2008-10-28 21:19:25 +0000
committergrum <grum@piwigo.org>2008-10-28 21:19:25 +0000
commit059a02f5a76dfe7de0d63373f3da7d1ab44c1bc0 (patch)
tree17b63a572f9f87cf0986e097084cc9c81e0dae94 /include
parent027055eb9fbbef68c6d3915e017d198fa9033774 (diff)
menu item "quicksearch" will be displayed only if a $block->data is set (like
other menu items) use of a boolean value for the "qsearch" $block->data variable (see topic #98370) git-svn-id: http://piwigo.org/svn/branches/2.0@2814 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to 'include')
-rw-r--r--include/menubar.inc.php4
1 files changed, 4 insertions, 0 deletions
diff --git a/include/menubar.inc.php b/include/menubar.inc.php
index 6e9f73a86..2d620e1d6 100644
--- a/include/menubar.inc.php
+++ b/include/menubar.inc.php
@@ -215,6 +215,10 @@ function initialize_menu()
//---------------------------------------------------------------------- summary
if ( ($block=$menu->get_block('mbMenu')) != null )
{
+ // quick search block will be displayed only if data['qsearch'] is set
+ // to "yes"
+ $block->data['qsearch']=true;
+
// tags link
$block->data['tags'] =
array(