15 namespace TYPO3\CMS\Install\Updates;
25 protected $title =
'Update filelist user setting "startModule"';
43 $description =
'The backend user setting startModule is changed for the extension filelist. Update all backend users that use ext:filelist as startModule.';
55 public function performUpdate(array &$databaseQueries, &$customMessages)
58 $backendUsers = $db->exec_SELECTgetRows(
'uid,uc',
'be_users',
'1=1');
59 if (!empty($backendUsers)) {
60 foreach ($backendUsers as $backendUser) {
61 if ($backendUser[
'uc'] !== null) {
62 $userConfig = unserialize($backendUser[
'uc']);
63 if ($userConfig[
'startModule'] ===
'file_list') {
64 $userConfig[
'startModule'] =
'file_FilelistList';
65 $db->exec_UPDATEquery(
67 'uid=' . (
int)$backendUser[
'uid'],
69 'uc' => serialize($userConfig),
72 $databaseQueries[] = $db->debug_lastBuiltQuery;