diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-03-26 19:57:29 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-03-26 19:57:29 -0400 |
commit | 66ed670618671b5152e30d89802053ac943bb7ae (patch) | |
tree | 8f67bb1bb9fc9f0fc8297d952d3259006778e14b /app | |
parent | ec08dd4aad03c8b57fdc64ed4d288a194ad0a924 (diff) |
Make documentation images works with French locales
Diffstat (limited to 'app')
-rw-r--r-- | app/Controller/Doc.php | 4 |
1 files changed, 4 insertions, 0 deletions
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].')'; } } |