mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-11-15 11:13:50 +00:00
Fixed: Function for imagesize used wrong and non declared argument
This commit is contained in:
1 parent
e697f4eca7
commit
ab25fadb1e
1 file changed
+2
-2
@@ -33,10 +33,10 @@ var fs = require("fs");
|
||||
var path = require("path");
|
||||
var child_process = require("child_process");
|
||||
|
||||
function imagesize() {
|
||||
function imagesize(path) {
|
||||
var result;
|
||||
try {
|
||||
result = child_process.execSync("imagesize -n " + p);
|
||||
result = child_process.execSync("imagesize -n " + path);
|
||||
} catch(err) {
|
||||
console.error("imagesize failed:" + err);
|
||||
}
|
||||
|
||||
Reference in new issue
Block a user