Make documentation images works with French locales

This commit is contained in:
Frederic Guillot 2016-03-26 19:57:29 -04:00
parent ec08dd4aad
commit 66ed670618
1 changed files with 4 additions and 0 deletions

View File

@ -83,6 +83,10 @@ class Doc extends Base
*/
public function replaceImageUrl(array $matches)
{
if ($this->config->getCurrentLanguage() === 'fr_FR') {
return '('.$this->helper->url->base().'doc/fr/'.$matches[1].')';
}
return '('.$this->helper->url->base().'doc/'.$matches[1].')';
}
}