Commit 70d88fbd authored by Leigh B. Stoller's avatar Leigh B. 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) ...@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors)
} }
else { else {
theform['formfields[path]'].value = theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/'; '/groups/' + pid + '/' + gid + '/images/';
} }
} }
else if (theform['formfields[imagename]'].value != '') { else if (theform['formfields[imagename]'].value != '') {
...@@ -174,7 +174,7 @@ function SPITFORM($formfields, $errors) ...@@ -174,7 +174,7 @@ function SPITFORM($formfields, $errors)
} }
else { else {
theform['formfields[path]'].value = theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/' + '/groups/' + pid + '/' + gid + '/images/' +
filename; filename;
} }
} }
...@@ -501,7 +501,7 @@ if (! $submit) { ...@@ -501,7 +501,7 @@ if (! $submit) {
if (!strcmp($project, $group)) if (!strcmp($project, $group))
$defaults[path] = "/proj/$project/images/"; $defaults[path] = "/proj/$project/images/";
else else
$defaults[path] = "/groups/$project/$group/"; $defaults[path] = "/groups/$project/$group/images/";
} }
reset($projlist); reset($projlist);
} }
......
...@@ -140,7 +140,7 @@ function SPITFORM($formfields, $errors) ...@@ -140,7 +140,7 @@ function SPITFORM($formfields, $errors)
} }
else { else {
theform['formfields[path]'].value = theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/'; '/groups/' + pid + '/' + gid + '/images/';
} }
} }
else if (theform['formfields[imagename]'].value != '') { else if (theform['formfields[imagename]'].value != '') {
...@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors) ...@@ -157,7 +157,7 @@ function SPITFORM($formfields, $errors)
} }
else { else {
theform['formfields[path]'].value = theform['formfields[path]'].value =
'/groups/' + pid + '/' + gid + '/' + '/groups/' + pid + '/' + gid + '/images/' +
filename; filename;
} }
} }
...@@ -594,7 +594,7 @@ if (! $submit) { ...@@ -594,7 +594,7 @@ if (! $submit) {
if (!strcmp($project, $group)) if (!strcmp($project, $group))
$defaults[path] = "/proj/$project/images/"; $defaults[path] = "/proj/$project/images/";
else else
$defaults[path] = "/groups/$project/$group/"; $defaults[path] = "/groups/$project/$group/images/";
} }
reset($projlist); 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