Skip to content

Commit 5043379

Browse files
authored
Update BreadcrumbsHelper.php (joomla#44605)
Thanks for the clean-up @brianteeman
1 parent 9db0761 commit 5043379

File tree

1 file changed

+0
-31
lines changed

1 file changed

+0
-31
lines changed

modules/mod_breadcrumbs/src/Helper/BreadcrumbsHelper.php

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,6 @@
1313
use Joomla\CMS\Application\CMSApplication;
1414
use Joomla\CMS\Application\SiteApplication;
1515
use Joomla\CMS\Factory;
16-
use Joomla\CMS\HTML\HTMLHelper;
1716
use Joomla\CMS\Language\Multilanguage;
1817
use Joomla\Registry\Registry;
1918

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

91-
/**
92-
* Set the breadcrumbs separator for the breadcrumbs display.
93-
*
94-
* @param string $custom Custom xhtml compliant string to separate the items of the breadcrumbs
95-
*
96-
* @return string Separator string
97-
*
98-
* @since 1.5
99-
*
100-
* @deprecated 4.4.0 will be removed in 6.0 as this function is not used anymore
101-
*/
102-
public static function setSeparator($custom = null)
103-
{
104-
$lang = Factory::getApplication()->getLanguage();
105-
106-
// If a custom separator has not been provided we try to load a template
107-
// specific one first, and if that is not present we load the default separator
108-
if ($custom === null) {
109-
if ($lang->isRtl()) {
110-
$_separator = HTMLHelper::_('image', 'system/arrow_rtl.png', null, null, true);
111-
} else {
112-
$_separator = HTMLHelper::_('image', 'system/arrow.png', null, null, true);
113-
}
114-
} else {
115-
$_separator = htmlspecialchars($custom, ENT_COMPAT, 'UTF-8');
116-
}
117-
118-
return $_separator;
119-
}
120-
12190
/**
12291
* Retrieve breadcrumb items
12392
*

0 commit comments

Comments
 (0)