capes_dir != capes_path

This commit is contained in:
jomo 2015-02-14 02:17:55 +01:00
parent cb7f03b0b5
commit 6ecde79475

View File

@ -320,7 +320,7 @@ exp.get_cape = function(rid, userId, callback) {
callback(err, null, null);
return;
}
var capepath = __dirname + "/../" + config.capes_path + cape_hash + ".png";
var capepath = __dirname + "/../" + config.capes_dir + cape_hash + ".png";
fs.exists(capepath, function(exists) {
if (exists) {
logging.log(rid + "cape already exists, not downloading");