Sexified code. Added section for user handling.
This commit is contained in:
Rudi Grinberg 2012-08-23 10:21:39 -04:00
parent 9893282e43
commit 23e3f6137d
1 changed files with 61 additions and 55 deletions

View File

@ -901,6 +901,12 @@ class Application_Model_StoredFile
hard drive does not have enough disk space or the stor hard drive does not have enough disk space or the stor
directory does not have correct write permissions. "); directory does not have correct write permissions. ");
} }
// Now that we successfully added this file, we will add another tag
// file that will identify the user that owns it
$uid = Application_Model_User::getCurrentUser()->getId();
if (file_put_contents($audio_stor,$uid) === false) {
Logging::info("Could write file to identify user: '$uid'");
}
return null; return null;
} }