mirror of
https://github.com/Piwigo/Piwigo.git
synced 2026-03-28 17:42:57 +01:00
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
This commit is contained in:
@@ -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']) )
|
||||
{
|
||||
|
||||
@@ -85,11 +85,6 @@ if (count($page['items']) > $page['nb_image_page'])
|
||||
|
||||
$template->assign('thumb_navbar', $page['navigation_bar'] );
|
||||
|
||||
if ( $page['section']=='search' and isset($page['qsearch_details']) )
|
||||
{
|
||||
$template->assign('QUERY_SEARCH', htmlspecialchars($page['qsearch_details']['q']) );
|
||||
}
|
||||
|
||||
// caddie filling :-)
|
||||
if (isset($_GET['caddie']))
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user