[TASK] Fix a few variable names 62/27762/2
authorFabien Udriot <fabien.udriot@ecodev.ch>
Thu, 20 Feb 2014 19:53:51 +0000 (20:53 +0100)
committerWouter Wolters <typo3@wouterwolters.nl>
Thu, 20 Feb 2014 19:59:21 +0000 (20:59 +0100)
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
typo3/sysext/core/Classes/Resource/Hook/FileInfoHook.php
typo3/sysext/core/Classes/Resource/Processing/FileDeletionAspect.php

index e4cac25..6b62aaa 100644 (file)
@@ -62,10 +62,10 @@ class FileInfoHook {
         * @return string The HTML code for the TCEform field
         */
        public function renderFileMetadataInfo(array $propertyArray, \TYPO3\CMS\Backend\Form\FormEngine $tceformsObj) {
-               $fileMedadataRecord = $propertyArray['row'];
+               $fileMetadataRecord = $propertyArray['row'];
                $fileObject = NULL;
-               if ($fileMedadataRecord['file'] > 0) {
-                       $fileObject = ResourceFactory::getInstance()->getFileObject((int)$fileMedadataRecord['file']);
+               if ($fileMetadataRecord['file'] > 0) {
+                       $fileObject = ResourceFactory::getInstance()->getFileObject((int)$fileMetadataRecord['file']);
                }
 
                return $this->renderFileInformationContent($fileObject);
index 4907140..231c056 100644 (file)
@@ -115,10 +115,10 @@ class FileDeletionAspect {
                // Retrieve the file metadata uid which is different from the file uid.
                $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(
                        'sys_category_record_mm',
-                       'uid_foreign=' . (int)$metadDataUid . ' AND tablenames = \'sys_file_metadata\''
+                       'uid_foreign=' . (int)$metaDataUid . ' AND tablenames = \'sys_file_metadata\''
                );
        }