If this is your first visit, check our documentation. To post, register or login.
Forums / Bug Reports / search sidebox button

search sidebox button

Started by patg on 11 Feb 2011, 5:36 AM · Views: 641

Results 1 to 1 of 1
11 Feb 2011, 5:36 AM
#1
patg avatar

patg

New Zenner

Join Date:
Feb 2011
Posts:
4
Plugin Contributions:
0

search sidebox button

v1.3.9h

I did a bugs forum search and did not get any hits on "search sidebox" so I will post this info for the next update. tpl_search.php has a logic error for determining the type of button to show in the search sidebox. The existing code is on Line 17

if (strtolower(IMAGE_USE_CSS_BUTTONS) == 'yes')

but the logic in the if block is ordered incorrectly and you get the opposite of your CSS setting. For instance, if CSS button is off you should get your template image button but you get CSS instead. The code can be changed to the following to fix.

if (strtolower(IMAGE_USE_CSS_BUTTONS) != 'yes')