elderwand 0.1.49 → 0.1.51
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -563,6 +563,10 @@ module.exports.inherit = function (child) {
|
|
|
563
563
|
fs.mkdirSync(path.resolve('uploads/' + child.singularName + "/" + req[child.singularName].id));
|
|
564
564
|
}
|
|
565
565
|
var needToSave = false
|
|
566
|
+
|
|
567
|
+
if(req.files == null){
|
|
568
|
+
req.files = {}
|
|
569
|
+
}
|
|
566
570
|
async.each(Object.keys(req.files), function(key, next){
|
|
567
571
|
if(req[child.singularName].walk(key) == undefined || req[child.singularName].walk(key) == null){
|
|
568
572
|
req[child.singularName].walk(key, [])
|
package/Language/index.js
CHANGED
|
@@ -21,10 +21,10 @@ exports.getFunction = function(query){
|
|
|
21
21
|
//EWLog(arguments, sprintf.apply(null, arguments));
|
|
22
22
|
return sprintf.apply(null, arguments);
|
|
23
23
|
}else{
|
|
24
|
-
return
|
|
24
|
+
return query;
|
|
25
25
|
}
|
|
26
26
|
}catch(e){
|
|
27
|
-
return
|
|
27
|
+
return query;
|
|
28
28
|
}
|
|
29
29
|
};
|
|
30
30
|
exports.swigFilter = function(swig){
|