public function putPhoto($localFile, $remoteFile, $dateTaken) { if (strpos($remoteFile, '/original/') === false) { return parent::putPhoto($localFile, $remoteFile, $dateTaken); } else { return $this->archiveOrg->fs->putPhoto($localFile, $remoteFile, $dateTaken); } }
public function putPhoto($localFile, $remoteFile) { $parentStatus = true; if (strpos($remoteFile, '/original/') === false) { $parentStatus = parent::putPhoto($localFile, $remoteFile); } return $this->dropbox->putPhoto($localFile, $remoteFile) && $parentStatus; }