Skip to content
Snippets Groups Projects
Commit 0bcfd5bb authored by Fabien Udriot's avatar Fabien Udriot Committed by Wouter Wolters
Browse files

[TASK] Fix a few variable names

Fix a few typo in the variable names.

Change-Id: I334e31a1e8e37ce7a79a3b905758843d51463c26
Releases: 6.2
Resolves: #56165
Reviewed-on: https://review.typo3.org/27762
Reviewed-by: Wouter Wolters
Tested-by: Wouter Wolters
parent aa5804dd
Branches
Tags
No related merge requests found
...@@ -62,10 +62,10 @@ class FileInfoHook { ...@@ -62,10 +62,10 @@ class FileInfoHook {
* @return string The HTML code for the TCEform field * @return string The HTML code for the TCEform field
*/ */
public function renderFileMetadataInfo(array $propertyArray, \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj) { public function renderFileMetadataInfo(array $propertyArray, \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj) {
$fileMedadataRecord = $propertyArray['row']; $fileMetadataRecord = $propertyArray['row'];
$fileObject = NULL; $fileObject = NULL;
if ($fileMedadataRecord['file'] > 0) { if ($fileMetadataRecord['file'] > 0) {
$fileObject = ResourceFactory::getInstance()->getFileObject((int)$fileMedadataRecord['file']); $fileObject = ResourceFactory::getInstance()->getFileObject((int)$fileMetadataRecord['file']);
} }
return $this->renderFileInformationContent($fileObject); return $this->renderFileInformationContent($fileObject);
......
...@@ -115,10 +115,10 @@ class FileDeletionAspect { ...@@ -115,10 +115,10 @@ class FileDeletionAspect {
// Retrieve the file metadata uid which is different from the file uid. // Retrieve the file metadata uid which is different from the file uid.
$metadataProperties = $fileObject->_getMetaData(); $metadataProperties = $fileObject->_getMetaData();
$metadDataUid = isset($metadataProperties['_ORIG_uid']) ? $metadataProperties['_ORIG_uid'] : $metadataProperties['uid']; $metaDataUid = isset($metadataProperties['_ORIG_uid']) ? $metadataProperties['_ORIG_uid'] : $metadataProperties['uid'];
$this->getDatabase()->exec_DELETEquery( $this->getDatabase()->exec_DELETEquery(
'sys_category_record_mm', 'sys_category_record_mm',
'uid_foreign=' . (int)$metadDataUid . ' AND tablenames = \'sys_file_metadata\'' 'uid_foreign=' . (int)$metaDataUid . ' AND tablenames = \'sys_file_metadata\''
); );
} }
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment