Thumbnail API mutually exclusive force/queue flags collapsed into single create mode parameter.

git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/HEAD/root@10219 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
Kevin Roast
2008-08-04 10:46:04 +00:00
parent 0a6cccc428
commit 476267e8f8

View File

@@ -22,20 +22,19 @@ function main()
return;
}
// Get the queue create flag
// Get the queue/force create setting
var qc = false;
var qcString = args.qc;
if (qcString != null)
{
qc = utils.toBoolean(qcString);
}
// Get the force create flag
var fc = false;
var fcString = args.fc;
if (fcString != null)
if (args.c != null)
{
fc = utils.toBoolean(fcString);
if (args.c == "queue")
{
qc = true;
}
else if (args.c == "force")
{
fc = true;
}
}
// Get the place holder flag