We are moving to Git Issues for bug tracking in future releases. During transition, content will be in both tools. If you'd like to file a new bug, please create an issue.

View | Details | Raw Unified | Return to bug 6696 | Differences between
and this patch

Collapse All | Expand All

(-)ojs-2.3.0-mod/classes/issue/form/IssueForm.inc.php (-1 / +2 lines)
 Lines 353-359    Link Here 
353
		if ($publicFileManager->uploadedFileExists('coverPage')) {
353
		if ($publicFileManager->uploadedFileExists('coverPage')) {
354
			$journal = Request::getJournal();
354
			$journal = Request::getJournal();
355
			$originalFileName = $publicFileManager->getUploadedFileName('coverPage');
355
			$originalFileName = $publicFileManager->getUploadedFileName('coverPage');
356
			$newFileName = 'cover_issue_' . $issueId . '_' . $this->getFormLocale() . '.' . $publicFileManager->getExtension($originalFileName);
356
			$type = $publicFileManager->getUploadedFileType('coverPage');
357
			$newFileName = 'cover_issue_' . $issueId . '_' . $this->getFormLocale() . $publicFileManager->getImageExtension($type);
357
			$publicFileManager->uploadJournalFile($journal->getJournalId(), 'coverPage', $newFileName);
358
			$publicFileManager->uploadJournalFile($journal->getJournalId(), 'coverPage', $newFileName);
358
			$issue->setOriginalFileName($publicFileManager->truncateFileName($originalFileName, 127), $this->getFormLocale());
359
			$issue->setOriginalFileName($publicFileManager->truncateFileName($originalFileName, 127), $this->getFormLocale());
359
			$issue->setFileName($newFileName, $this->getFormLocale());
360
			$issue->setFileName($newFileName, $this->getFormLocale());
(-)ojs-2.3.0-mod/classes/submission/form/MetadataForm.inc.php (-1 / +2 lines)
 Lines 283-289    Link Here 
283
		if ($publicFileManager->uploadedFileExists(COVER_PAGE_IMAGE_NAME)) {
283
		if ($publicFileManager->uploadedFileExists(COVER_PAGE_IMAGE_NAME)) {
284
			$journal = Request::getJournal();
284
			$journal = Request::getJournal();
285
			$originalFileName = $publicFileManager->getUploadedFileName(COVER_PAGE_IMAGE_NAME);
285
			$originalFileName = $publicFileManager->getUploadedFileName(COVER_PAGE_IMAGE_NAME);
286
			$newFileName = 'cover_article_' . $this->article->getArticleId() . '_' . $this->getFormLocale() . '.' . $publicFileManager->getExtension($originalFileName);
286
			$type = $publicFileManager->getUploadedFileType(COVER_PAGE_IMAGE_NAME);
287
			$newFileName = 'cover_article_' . $this->article->getArticleId() . '_' . $this->getFormLocale() . $publicFileManager->getImageExtension($type);
287
			$publicFileManager->uploadJournalFile($journal->getJournalId(), COVER_PAGE_IMAGE_NAME, $newFileName);
288
			$publicFileManager->uploadJournalFile($journal->getJournalId(), COVER_PAGE_IMAGE_NAME, $newFileName);
288
			$article->setOriginalFileName($publicFileManager->truncateFileName($originalFileName, 127), $this->getFormLocale());
289
			$article->setOriginalFileName($publicFileManager->truncateFileName($originalFileName, 127), $this->getFormLocale());
289
			$article->setFileName($newFileName, $this->getFormLocale());
290
			$article->setFileName($newFileName, $this->getFormLocale());

Return to bug 6696