mirror of
https://github.com/ether/etherpad-lite.git
synced 2026-05-06 04:36:17 +02:00
Don't break if a plugin hasn't got a locales dir
This commit is contained in:
parent
cf24e53eae
commit
7aba02f0cf
@ -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;
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user