minor changes

This commit is contained in:
coderaiser 2013-02-05 05:31:04 -05:00
parent 18c1af8e29
commit 931bb7979a

View file

@ -112,7 +112,7 @@
};
if(n){
var i, lDirPath = getDirPath(lReq);
var i, lDirPath = getCleanPath(lReq);
for(i = 0; i < n; i++){
var lName = lDirPath + lFiles[i],
@ -188,7 +188,7 @@
var lJSON = [],
lJSONFile = {},
lList,
lDirPath = getDirPath(lReq);
lDirPath = getCleanPath(lReq);
lJSON[0] = {
path : lDirPath,
@ -349,15 +349,6 @@
return lPath;
}
function getDirPath(pReq){
var lPath = getPath(pReq);
/* Если мы не в корне добавляем слеш к будующим ссылкам */
if(lPath !== '/')
lPath += '/';
return lPath;
}
function getCleanPath(pReq){
var lPath = getPath(pReq),