From d53b11443f6c5a10fe62b0637d00dd6dba61c657 Mon Sep 17 00:00:00 2001 From: Marcel Werk Date: Tue, 26 Feb 2019 18:46:02 +0100 Subject: [PATCH] Disable search-dropdown if captcha is required Closes #2856 --- com.woltlab.wcf/templates/pageHeaderUser.tpl | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/com.woltlab.wcf/templates/pageHeaderUser.tpl b/com.woltlab.wcf/templates/pageHeaderUser.tpl index f52e8456e3..ad55fefe21 100644 --- a/com.woltlab.wcf/templates/pageHeaderUser.tpl +++ b/com.woltlab.wcf/templates/pageHeaderUser.tpl @@ -277,8 +277,14 @@ {/if} -
  • - {lang}wcf.global.search{/lang} -
  • + {if !SEARCH_USE_CAPTCHA || $__wcf->user->userID} +
  • + {lang}wcf.global.search{/lang} +
  • + {else} +
  • + {lang}wcf.global.search{/lang} +
  • + {/if} -- 2.20.1