diff options
author | Simon Bartlett <simon@securitycompass.com> | 2015-02-23 00:29:14 -0500 |
---|---|---|
committer | Simon Bartlett <simon@securitycompass.com> | 2015-02-23 00:58:13 -0500 |
commit | 0fe11184aa3eb44d0802a240900150618d823b4d (patch) | |
tree | 226c8eef5f9f56229a2cad1252a56fff003a87b8 /app/core/files.js | |
parent | 89dd988b1d820ab5d23d2108c89a89b11d9718d6 (diff) | |
download | lets-chat-0fe11184aa3eb44d0802a240900150618d823b4d.zip lets-chat-0fe11184aa3eb44d0802a240900150618d823b4d.tar.gz lets-chat-0fe11184aa3eb44d0802a240900150618d823b4d.tar.bz2 |
File fixes
Diffstat (limited to 'app/core/files.js')
-rw-r--r-- | app/core/files.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/app/core/files.js b/app/core/files.js index 45923f3..67f0978 100644 --- a/app/core/files.js +++ b/app/core/files.js @@ -19,7 +19,8 @@ function FileManager(options) { if (settings.provider === 'local') { Provider = require('./files/local'); } else { - var pkg = require('lets-chat-' + settings.provider); + var pkgName = 'lets-chat-' + settings.provider; + var pkg = require(pkgName); Provider = pkg && pkg.files; if (!Provider) { throw 'Module "' + pkgName + '"" is not a files provider'; |