<li><a href="#" data-provider-name="everywhere">{lang}wcf.search.type.everywhere{/lang}</a></li>
<li class="dropdownDivider"></li>
- {foreach from=$availableAcpSearchProviders item='availableAcpSearchProvider'}
- <li><a href="#" data-provider-name="{@$availableAcpSearchProvider->providerName}">{lang}wcf.acp.search.provider.{@$availableAcpSearchProvider->providerName}{/lang}</a></li>
+ {foreach from=$availableAcpSearchProviders key='availableAcpSearchProviderName' item='availableAcpSearchProviderLabel'}
+ <li><a href="#" data-provider-name="{@$availableAcpSearchProviderName}">{@$availableAcpSearchProviderLabel}</a></li>
{/foreach}
</ul>
</div>
$host = RouteHandler::getHost();
$path = RouteHandler::getPath();
+ // available acp search providers
+ $availableAcpSearchProviders = [];
+ foreach (ACPSearchProviderCacheBuilder::getInstance()->getData() as $searchProvider) {
+ $availableAcpSearchProviders[$searchProvider->providerName] = self::getLanguage()->get('wcf.acp.search.provider.'.$searchProvider->providerName);
+ }
+ asort($availableAcpSearchProviders);
+
self::getTPL()->assign([
'baseHref' => $host . $path,
- 'availableAcpSearchProviders' => ACPSearchProviderCacheBuilder::getInstance()->getData()
+ 'availableAcpSearchProviders' => $availableAcpSearchProviders
]);
}