Emanuele I.
Member
It's not a real bug, but in Class XenForo_Link, method buildIntegerAndTitleUrlComponent(), there is an apparent unnecessary double call to method getTitleForUrl().
I wonder if it could be simplyfied in:
Why filtering two times the same string?
PHP:
$title = self::getTitleForUrl($title, $romanize);
if ($title !== '')
{
# /item-title.id/ (where delimiter is '.')
return urlencode(self::getTitleForUrl($title, $romanize)) . XenForo_Application::URL_ID_DELIMITER . intval($integer);
}
I wonder if it could be simplyfied in:
PHP:
$title = self::getTitleForUrl($title, $romanize);
if ($title !== '')
{
# /item-title.id/ (where delimiter is '.')
return urlencode($title) . XenForo_Application::URL_ID_DELIMITER . intval($integer);
}
Why filtering two times the same string?