Commit 70d88fbd authored by Leigh Stoller's avatar Leigh Stoller

Change default path group images to be /groups/$pid/$gid/images/, as

per Eric's request. I had left out the trailing /images/.
parent fa287abd
......@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors)
}
else {
theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/';
'/groups/' + pid + '/' + gid + '/images/';
}
}
else if (theform['formfields[imagename]'].value != '') {
......@@ -174,7 +174,7 @@ function SPITFORM($formfields, $errors)
}
else {
theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/' +
'/groups/' + pid + '/' + gid + '/images/' +
filename;
}
}
......@@ -501,7 +501,7 @@ if (! $submit) {
if (!strcmp($project, $group))
$defaults[path] = "/proj/$project/images/";
else
$defaults[path] = "/groups/$project/$group/";
$defaults[path] = "/groups/$project/$group/images/";
}
reset($projlist);
}
......
......@@ -140,7 +140,7 @@ function SPITFORM($formfields, $errors)
}
else {
theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/';
'/groups/' + pid + '/' + gid + '/images/';
}
}
else if (theform['formfields[imagename]'].value != '') {
......@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors)
}
else {
theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/' +
'/groups/' + pid + '/' + gid + '/images/' +
filename;
}
}
......@@ -594,7 +594,7 @@ if (! $submit) {
if (!strcmp($project, $group))
$defaults[path] = "/proj/$project/images/";
else
$defaults[path] = "/groups/$project/$group/";
$defaults[path] = "/groups/$project/$group/images/";
}
reset($projlist);
}
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment