diff options
author | Frederic Guillot <fred@kanboard.net> | 2016-05-07 18:05:33 -0400 |
---|---|---|
committer | Frederic Guillot <fred@kanboard.net> | 2016-05-07 18:05:33 -0400 |
commit | 55ee906ba36cf66c3a390c98dde75e241de26e65 (patch) | |
tree | ed4e5419bb6254c97d63d6a5cab5ab74536201a0 /app/Controller/Doc.php | |
parent | aac11a609c58ec8356e1ca479da456876034b06c (diff) |
Added support for language LDAP attribute
Diffstat (limited to 'app/Controller/Doc.php')
-rw-r--r-- | app/Controller/Doc.php | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/app/Controller/Doc.php b/app/Controller/Doc.php index 00b9e585..219ef8ad 100644 --- a/app/Controller/Doc.php +++ b/app/Controller/Doc.php @@ -20,7 +20,7 @@ class Doc extends Base $page = 'index'; } - if ($this->config->getCurrentLanguage() === 'fr_FR') { + if ($this->language->getCurrentLanguage() === 'fr_FR') { $filename = __DIR__.'/../../doc/fr/' . $page . '.markdown'; } else { $filename = __DIR__ . '/../../doc/' . $page . '.markdown'; @@ -83,7 +83,7 @@ class Doc extends Base */ public function replaceImageUrl(array $matches) { - if ($this->config->getCurrentLanguage() === 'fr_FR') { + if ($this->language->getCurrentLanguage() === 'fr_FR') { return '('.$this->helper->url->base().'doc/fr/'.$matches[1].')'; } |