diff options
author | Marcel Klehr <mklehr@gmx.net> | 2012-12-19 21:43:15 +0100 |
---|---|---|
committer | Marcel Klehr <mklehr@gmx.net> | 2012-12-23 18:17:12 +0100 |
commit | 7aba02f0cf20cd475bc6a4186c2113d347b16fbe (patch) | |
tree | 95cdba181339a1423f6ab80c36a97f9d585678a3 /src/node/hooks | |
parent | cf24e53eaec133e42571b9d00f3cb862b077de69 (diff) | |
download | etherpad-lite-7aba02f0cf20cd475bc6a4186c2113d347b16fbe.zip |
Don't break if a plugin hasn't got a locales dir
Diffstat (limited to 'src/node/hooks')
-rw-r--r-- | src/node/hooks/i18n.js | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/src/node/hooks/i18n.js b/src/node/hooks/i18n.js index ddc52212..67bd802f 100644 --- a/src/node/hooks/i18n.js +++ b/src/node/hooks/i18n.js @@ -17,6 +17,7 @@ function getAllLocales() { // into `results` (files from various dirs are grouped by lang code) // (only json files with valid language code as name) function extractLangs(dir) { + if(!fs.existsSync(dir)) return; var stat = fs.lstatSync(dir); if (!stat.isDirectory() || stat.isSymbolicLink()) return; |