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 6876 | Differences between
and this patch

Collapse All | Expand All

(-)file_not_specified_in_diff (-4 / +4 lines)
Line     Link Here 
0
-- a/classes/file/ArticleFileManager.inc.php
0
++ b/classes/file/ArticleFileManager.inc.php
 Lines 506-512   class ArticleFileManager extends FileManager { Link Here 
506
			$articleFile->setDateModified(Core::getCurrentDate());
506
			$articleFile->setDateModified(Core::getCurrentDate());
507
		}
507
		}
508
508
509
		$articleFile->setFileType($_FILES[$fileName]['type']);
509
		$articleFile->setFileType($this->getUploadedFileType($fileName));
510
		$articleFile->setFileSize($_FILES[$fileName]['size']);
510
		$articleFile->setFileSize($_FILES[$fileName]['size']);
511
		$articleFile->setOriginalFileName(ArticleFileManager::truncateFileName($_FILES[$fileName]['name'], 127));
511
		$articleFile->setOriginalFileName(ArticleFileManager::truncateFileName($_FILES[$fileName]['name'], 127));
512
		$articleFile->setType($typePath);
512
		$articleFile->setType($typePath);
513
-- a/pages/manager/SetupHandler.inc.php
513
++ b/pages/manager/SetupHandler.inc.php
 Lines 200-206   class SetupHandler extends ManagerHandler { Link Here 
200
						if (!is_array($templates)) $templates = array();
200
						if (!is_array($templates)) $templates = array();
201
						$templateId = count($templates);
201
						$templateId = count($templates);
202
						$originalFilename = $_FILES['template-file']['name'];
202
						$originalFilename = $_FILES['template-file']['name'];
203
						$fileType = $_FILES['template-file']['type'];
203
						$fileType = $journalFileManager->getUploadedFileType('template-file');
204
						$filename = "template-$templateId." . $journalFileManager->parseFileExtension($originalFilename);
204
						$filename = "template-$templateId." . $journalFileManager->parseFileExtension($originalFilename);
205
						$journalFileManager->uploadFile('template-file', $filename);
205
						$journalFileManager->uploadFile('template-file', $filename);
206
						$templates[$templateId] = array(
206
						$templates[$templateId] = array(

Return to bug 6876