29
0
mirror of https://github.com/joomla/joomla-cms.git synced 2024-06-21 11:35:24 +00:00

Finder: Don't search for alternative images (#42725)

This commit is contained in:
Hannes Papenberg 2024-02-05 22:49:22 +01:00 committed by GitHub
parent fa6fd0ad16
commit 6253096424
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -72,10 +72,10 @@ if ($this->params->get('show_url', 1)) {
<figure class="<?php echo htmlspecialchars($imageClass, ENT_COMPAT, 'UTF-8'); ?> result__image">
<?php if ($this->params->get('link_image') && $this->result->route) : ?>
<a href="<?php echo Route::_($this->result->route); ?>">
<?php echo HTMLHelper::_('image', $this->result->imageUrl, $this->result->imageAlt, $extraAttr); ?>
<?php echo HTMLHelper::_('image', $this->result->imageUrl, $this->result->imageAlt, $extraAttr, false, -1); ?>
</a>
<?php else : ?>
<?php echo HTMLHelper::_('image', $this->result->imageUrl, $this->result->imageAlt, $extraAttr); ?>
<?php echo HTMLHelper::_('image', $this->result->imageUrl, $this->result->imageAlt, $extraAttr, false, -1); ?>
<?php endif; ?>
</figure>
<?php endif; ?>