aboutsummaryrefslogtreecommitdiffstats
path: root/include/menubar.inc.php
diff options
context:
space:
mode:
authorrvelices <rv-github@modusoptimus.com>2014-04-30 18:31:00 +0000
committerrvelices <rv-github@modusoptimus.com>2014-04-30 18:31:00 +0000
commitfc20ee6b691287363714f49ab90837359c3db951 (patch)
treefc4c558e690dc0b53402d8bd1fb913ccf7c2716c /include/menubar.inc.php
parent54cf766ac3f3c9e4aac4d981882224b0283398ed (diff)
move QUERY_SEARCH template ssignment from index to menubar.inc.php (works also on photo pages)
git-svn-id: http://piwigo.org/svn/trunk@28316 68402e56-0260-453c-a942-63ccdbb3a9ee
Diffstat (limited to '')
-rw-r--r--include/menubar.inc.php5
1 files changed, 5 insertions, 0 deletions
diff --git a/include/menubar.inc.php b/include/menubar.inc.php
index 07ca96bcb..8f5d8eb49 100644
--- a/include/menubar.inc.php
+++ b/include/menubar.inc.php
@@ -40,6 +40,11 @@ function initialize_menu()
$menu->load_registered_blocks();
$menu->prepare_display();
+ if ( $page['section']=='search' and isset($page['qsearch_details']) )
+ {
+ $template->assign('QUERY_SEARCH', htmlspecialchars($page['qsearch_details']['q']) );
+ }
+
//--------------------------------------------------------------- external links
if ( ($block=$menu->get_block('mbLinks')) and !empty($conf['links']) )
{