mirror of
https://github.com/HaschekSolutions/pictshare.git
synced 2025-11-19 22:47:59 +00:00
added delete codes and fixed various bugs related to custom hashes
This commit is contained in:
@@ -18,11 +18,7 @@ class AltfolderStorage implements StorageController
|
||||
$altname=ALT_FOLDER.DS.$hash;
|
||||
if(file_exists($altname))
|
||||
{
|
||||
mkdir(ROOT.DS.'data'.DS.$hash);
|
||||
copy($altname,ROOT.DS.'data'.DS.$hash.DS.$hash);
|
||||
|
||||
//and don't forget to add it to the duplicate detection system
|
||||
addSha1($hash,sha1_file($altname));
|
||||
storeFile($altname,$hash,false);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user