[!!!][TASK] Remove utf8 conversion in EXT:recycler
[Packages/TYPO3.CMS.git] / typo3 / sysext / recycler / Classes / Controller / DeletedRecordsController.php
index 3da46f6..a19a041 100644 (file)
@@ -58,7 +58,6 @@ class DeletedRecordsController
 
         if (is_array($deletedRowsArray)) {
             $lang = $this->getLanguageService();
 
         if (is_array($deletedRowsArray)) {
             $lang = $this->getLanguageService();
-            $backendUser = $this->getBackendUser();
             $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
 
             foreach ($deletedRowsArray as $table => $rows) {
             $iconFactory = GeneralUtility::makeInstance(IconFactory::class);
 
             foreach ($deletedRowsArray as $table => $rows) {
@@ -70,14 +69,14 @@ class DeletedRecordsController
                         'uid' => $row['uid'],
                         'pid' => $row['pid'],
                         'icon' => $iconFactory->getIconForRecord($table, $row, Icon::SIZE_SMALL)->render(),
                         'uid' => $row['uid'],
                         'pid' => $row['pid'],
                         'icon' => $iconFactory->getIconForRecord($table, $row, Icon::SIZE_SMALL)->render(),
-                        'pageTitle' => RecyclerUtility::getUtf8String($pageTitle),
+                        'pageTitle' => $pageTitle,
                         'table' => $table,
                         'crdate' => BackendUtility::datetime($row[$GLOBALS['TCA'][$table]['ctrl']['crdate']]),
                         'tstamp' => BackendUtility::datetime($row[$GLOBALS['TCA'][$table]['ctrl']['tstamp']]),
                         'owner' => htmlspecialchars($backendUser['username']),
                         'owner_uid' => $row[$GLOBALS['TCA'][$table]['ctrl']['cruser_id']],
                         'table' => $table,
                         'crdate' => BackendUtility::datetime($row[$GLOBALS['TCA'][$table]['ctrl']['crdate']]),
                         'tstamp' => BackendUtility::datetime($row[$GLOBALS['TCA'][$table]['ctrl']['tstamp']]),
                         'owner' => htmlspecialchars($backendUser['username']),
                         'owner_uid' => $row[$GLOBALS['TCA'][$table]['ctrl']['cruser_id']],
-                        'tableTitle' => RecyclerUtility::getUtf8String($lang->sL($GLOBALS['TCA'][$table]['ctrl']['title'])),
-                        'title' => htmlspecialchars(RecyclerUtility::getUtf8String(BackendUtility::getRecordTitle($table, $row))),
+                        'tableTitle' => $lang->sL($GLOBALS['TCA'][$table]['ctrl']['title']),
+                        'title' => htmlspecialchars(BackendUtility::getRecordTitle($table, $row)),
                         'path' => RecyclerUtility::getRecordPath($row['pid'])
                     );
                 }
                         'path' => RecyclerUtility::getRecordPath($row['pid'])
                     );
                 }
@@ -120,16 +119,6 @@ class DeletedRecordsController
         return $GLOBALS['LANG'];
     }
 
         return $GLOBALS['LANG'];
     }
 
-    /**
-     * Returns the current BE user.
-     *
-     * @return \TYPO3\CMS\Core\Authentication\BackendUserAuthentication
-     */
-    protected function getBackendUser()
-    {
-        return $GLOBALS['BE_USER'];
-    }
-
     /**
      * Create and returns an instance of the CacheManager
      *
     /**
      * Create and returns an instance of the CacheManager
      *