From 66ed670618671b5152e30d89802053ac943bb7ae Mon Sep 17 00:00:00 2001 From: Frederic Guillot Date: Sat, 26 Mar 2016 19:57:29 -0400 Subject: Make documentation images works with French locales --- app/Controller/Doc.php | 4 ++++ 1 file changed, 4 insertions(+) (limited to 'app/Controller/Doc.php') diff --git a/app/Controller/Doc.php b/app/Controller/Doc.php index 9164c6b9..00b9e585 100644 --- a/app/Controller/Doc.php +++ b/app/Controller/Doc.php @@ -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].')'; } } -- cgit v1.2.3