소스 검색

capes_dir != capes_path

jomo 10 년 전
부모
커밋
6ecde79475
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      modules/helpers.js

+ 1 - 1
modules/helpers.js

@@ -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");