From 70d88fbd9e6823f2351fd11814b7a0521f05f5b4 Mon Sep 17 00:00:00 2001 From: "Leigh B. Stoller" Date: Tue, 15 Apr 2003 13:59:26 +0000 Subject: [PATCH] Change default path group images to be /groups/$pid/$gid/images/, as per Eric's request. I had left out the trailing /images/. --- www/newimageid.php3 | 6 +++--- www/newimageid_ez.php3 | 6 +++--- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/www/newimageid.php3 b/www/newimageid.php3 index 61b5529c8..002dd8f27 100644 --- a/www/newimageid.php3 +++ b/www/newimageid.php3 @@ -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); } diff --git a/www/newimageid_ez.php3 b/www/newimageid_ez.php3 index 3c52c8795..29043339a 100644 --- a/www/newimageid_ez.php3 +++ b/www/newimageid_ez.php3 @@ -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); } -- GitLab