Changeset 2813


Ignore:
Timestamp:
Oct 27, 2008, 10:45:02 PM (15 years ago)
Author:
grum
Message:

use of a boolean value for the "qsearch" $block->data variable
(see topic #98370)

Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/include/menubar.inc.php

    r2810 r2813  
    218218    // quick search block will be displayed only if data['qsearch'] is set
    219219    // to "yes"
    220     $block->data['qsearch']='yes';
     220    $block->data['qsearch']=true;
    221221
    222222    // tags link
  • trunk/template/yoga/menubar_menu.tpl

    r2810 r2813  
    11<dt>{'title_menu'|@translate}</dt>
    22<dd>
    3   {if isset($block->data.qsearch) and  $block->data.qsearch=="yes"}
     3  {if isset($block->data.qsearch) and  $block->data.qsearch==true}
    44    <form action="{$ROOT_URL}qsearch.php" method="get" id="quicksearch" onsubmit="return this.q.value!='' && this.q.value!=qsearch_prompt;">
    55      <p style="margin:0;padding:0"{*this <p> is for html validation only - does not affect positioning*}>
Note: See TracChangeset for help on using the changeset viewer.