diff options
Diffstat (limited to 'etherpad/src/etherpad/utils.js')
-rw-r--r-- | etherpad/src/etherpad/utils.js | 8 |
1 files changed, 6 insertions, 2 deletions
diff --git a/etherpad/src/etherpad/utils.js b/etherpad/src/etherpad/utils.js index 734aaf5..83bfc07 100644 --- a/etherpad/src/etherpad/utils.js +++ b/etherpad/src/etherpad/utils.js @@ -70,9 +70,13 @@ function findExistsingFile(files) { function findTemplate(filename, plugin) { var files = []; - if (plugin != undefined) + if (plugin != undefined) { files.push('/plugins/' + plugin + '/templates/' + filename); - files.push('/templates/' + filename); + files.push('/themes/' + appjet.config.theme + '/plugins/' + plugin + '/templates/' + filename); + files.push('/themes/default/plugins/' + plugin + '/templates/' + filename); + } + files.push('/themes/' + appjet.config.theme + '/' + filename); + files.push('/themes/default/' + filename); return findExistsingFile(files); } |