Skip to content

Commit

Permalink
Update BreadcrumbsHelper.php (#44605)
Browse files Browse the repository at this point in the history
Thanks for the clean-up @brianteeman
  • Loading branch information
brianteeman authored Dec 18, 2024
1 parent 9db0761 commit 5043379
Showing 1 changed file with 0 additions and 31 deletions.
31 changes: 0 additions & 31 deletions modules/mod_breadcrumbs/src/Helper/BreadcrumbsHelper.php
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,6 @@
use Joomla\CMS\Application\CMSApplication;
use Joomla\CMS\Application\SiteApplication;
use Joomla\CMS\Factory;
use Joomla\CMS\HTML\HTMLHelper;
use Joomla\CMS\Language\Multilanguage;
use Joomla\Registry\Registry;

Expand Down Expand Up @@ -88,36 +87,6 @@ public function getHomeItem(Registry $params, SiteApplication $app): object
return $item;
}

/**
* Set the breadcrumbs separator for the breadcrumbs display.
*
* @param string $custom Custom xhtml compliant string to separate the items of the breadcrumbs
*
* @return string Separator string
*
* @since 1.5
*
* @deprecated 4.4.0 will be removed in 6.0 as this function is not used anymore
*/
public static function setSeparator($custom = null)
{
$lang = Factory::getApplication()->getLanguage();

// If a custom separator has not been provided we try to load a template
// specific one first, and if that is not present we load the default separator
if ($custom === null) {
if ($lang->isRtl()) {
$_separator = HTMLHelper::_('image', 'system/arrow_rtl.png', null, null, true);
} else {
$_separator = HTMLHelper::_('image', 'system/arrow.png', null, null, true);
}
} else {
$_separator = htmlspecialchars($custom, ENT_COMPAT, 'UTF-8');
}

return $_separator;
}

/**
* Retrieve breadcrumb items
*
Expand Down

0 comments on commit 5043379

Please sign in to comment.