From fd0f340bae44f8fe890383a2f91a30981e62a05f Mon Sep 17 00:00:00 2001 From: =?utf8?q?Tim=20D=C3=BCsterhus?= Date: Wed, 31 May 2023 15:38:16 +0200 Subject: [PATCH] Replace use of `|substr` by `|str_starts_with` in templates --- templates/__searchAreaConversationSettings.tpl | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/__searchAreaConversationSettings.tpl b/templates/__searchAreaConversationSettings.tpl index bfbeafb..71d3313 100644 --- a/templates/__searchAreaConversationSettings.tpl +++ b/templates/__searchAreaConversationSettings.tpl @@ -1,4 +1,4 @@ -{if $__searchAreaInitialized|empty && $templateName|substr:0:12 == 'conversation'} +{if $__searchAreaInitialized|empty && $templateName|str_starts_with:'conversation'} {assign var='__searchObjectTypeName' value='com.woltlab.wcf.conversation.message'} {if $__wcf->getActivePage()->identifier == 'com.woltlab.wcf.conversation.Conversation'} -- 2.20.1