Boothby
Well-known member
- Affected version
- 2.1.4
With $addOnLimit this method returns the filename with a slash from addOnId.
I also suggest to make the addOnLimit optional.
I also suggest to make the addOnLimit optional.
Code:
public function getExportFileName($addOnLimit = true)
{
$title = str_replace(' ', '-', utf8_romanize(utf8_deaccent($this->language->title)));
// replace slash with underscore
$addOnLimit = ($this->addOn && $addOnLimit) ? '-' . str_replace('/', '_', $this->addOn->addon_id) : '';
return "language-{$title}{$addOnLimit}.xml";
}