$svg = $this->wdir . '/' . $this->fluidbookSettings->tabsHTML5;
- $opt = SVGTools::optimizeSVG($svg, null, '--trim-ids no --remove-unreferenced-ids no --ungroup-groups no --group-by-style no', true);
-
- $svgContent = file_get_contents($opt);
- $svgContent = str_replace('_1_', '', $svgContent, $count);
- if ($count) {
- file_put_contents($opt, $svgContent);
- }
+ $opt = str_replace('.svg', '.o.svg', $this->wdir . '/' . $this->fluidbookSettings->tabsHTML5);
+ $svgContent = file_get_contents($svg);
+ $svgContent = str_replace('_1_', '', $svgContent);
+ $svgContent = str_replace('xmlns:xlink="http://www.w3.org/1999/xlink"', '',$svgContent);
+ $svgContent = SVGTools::addDimensionsAttributes($svgContent);
+ file_put_contents($opt, $svgContent);
$this->vdir->copy($opt, 'data/tabs.svg');
$this->config->svgTabs = true;