mirror of
https://github.com/ether/etherpad-lite.git
synced 2025-02-01 03:12:42 +01:00
Don't break if a plugin hasn't got a locales dir
This commit is contained in:
parent
cf24e53eae
commit
7aba02f0cf
1 changed files with 1 additions and 0 deletions
|
@ -17,6 +17,7 @@ function getAllLocales() {
|
||||||
// into `results` (files from various dirs are grouped by lang code)
|
// into `results` (files from various dirs are grouped by lang code)
|
||||||
// (only json files with valid language code as name)
|
// (only json files with valid language code as name)
|
||||||
function extractLangs(dir) {
|
function extractLangs(dir) {
|
||||||
|
if(!fs.existsSync(dir)) return;
|
||||||
var stat = fs.lstatSync(dir);
|
var stat = fs.lstatSync(dir);
|
||||||
if (!stat.isDirectory() || stat.isSymbolicLink()) return;
|
if (!stat.isDirectory() || stat.isSymbolicLink()) return;
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue