Changeset 435
- Timestamp:
- 10/08/2003 05:41:54 PM (22 years ago)
- File:
-
- 1 edited
-
trunk/wp-admin/b2upload.php (modified) (2 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/wp-admin/b2upload.php
r434 r435 172 172 $moved = copy($img1, $pathtofile2); 173 173 } 174 if (!$moved) 174 if (!$moved) { 175 175 die("Couldn't Upload Your File to $pathtofile2."); 176 } else { 177 @unlink($img1); 178 } 176 179 177 180 // duplicate-renaming function contributed by Gary Lawrence Murphy … … 209 212 } 210 213 // Still couldn't get it. Give up. 211 if (!moved) 214 if (!moved) { 212 215 die("Couldn't Upload Your File to $pathtofile."); 216 } else { 217 @unlink($img1); 218 } 213 219 } else { 214 220 rename($img1, $pathtofile)
Note: See TracChangeset
for help on using the changeset viewer.