Changeset 123 for pro-bachkim-filespace/sourcecode/api.violet.vn/www
- Timestamp:
- Sep 15, 2014 12:13:44 PM (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
pro-bachkim-filespace/sourcecode/api.violet.vn/www/apps/platform/modules/space/actions/actions.class.php
r122 r123 124 124 $currentFile = TblspacefilePeer::doSelectOne($c); 125 125 126 $c = new Criteria(); 127 $c->add(TblspacefilePeer::FILE_NAME, $currentFile->getFileName()); 128 $c->add(TblspacefilePeer::FILE_CATEGORY, $destination); 129 $c->add(TblspacefilePeer::FILE_USER, $userId); 130 $oldFile = TblspacefilePeer::doSelectOne($c); 131 132 $fileName = $oldFile != null ? 'Copy of '.$currentFile->getFileName():$currentFile->getFileName(); 126 $fileName = $currentFile->getFileCategory() == $destination ? 'Copy of '.$currentFile->getFileName():$currentFile->getFileName(); 133 127 134 128 $tblfile = new Tblspacefile();
Note: See TracChangeset
for help on using the changeset viewer.