Skip to content

Commit

Permalink
upgrade to TYPO3 12.2
Browse files Browse the repository at this point in the history
  • Loading branch information
Andreas Kessel committed Mar 26, 2023
1 parent f3e6368 commit ddea554
Show file tree
Hide file tree
Showing 6 changed files with 19 additions and 15 deletions.
3 changes: 3 additions & 0 deletions ChangeLog
@@ -1,3 +1,6 @@
2023-03-26 Andreas Kessel <typo3-dev@formatsoft.de>
* 3.0.0 upgrade to TYPO3 12.2

2021-10-01 Andreas Kessel <typo3-dev@formatsoft.de>
* 2.2.5 bug fix release: undefined array key

Expand Down
11 changes: 6 additions & 5 deletions Classes/Task/DbcheckTaskAdditionalFieldProvider.php
Expand Up @@ -15,7 +15,7 @@

use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Messaging\FlashMessage;
use TYPO3\CMS\Core\Type\ContextualFeedbackSeverity;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Scheduler\AbstractAdditionalFieldProvider;
use TYPO3\CMS\Scheduler\Controller\SchedulerModuleController;
Expand Down Expand Up @@ -91,10 +91,11 @@ public function getAdditionalFields(array &$taskInfo, $task, SchedulerModuleCont
. htmlspecialchars($fieldValue)
. '">';
$label = $lang->sL($this->languageFile . ':tasks.validate.'.$field);
$label = BackendUtility::wrapInHelp('dbcheck', $fieldId, $label);
$additionalFields[$fieldId] = [
'code' => $fieldCode,
'label' => $label
'label' => $label,
'cshKey' => '',
'cshLabel' => $fieldId,
];
}

Expand Down Expand Up @@ -125,7 +126,7 @@ public function validateAdditionalFields(array &$submittedData, SchedulerModuleC
$isValid = false;
$this->addMessage(
$lang->sL($this->languageFile . ':tasks.validate.notificationEmail.invalid'),
FlashMessage::ERROR
ContextualFeedbackSeverity::ERROR
);
}
}
Expand All @@ -135,7 +136,7 @@ public function validateAdditionalFields(array &$submittedData, SchedulerModuleC
$isValid = false;
$this->addMessage(
$lang->sL($this->languageFile . ':tasks.validate.maxDbSize.invalid'),
FlashMessage::ERROR
ContextualFeedbackSeverity::ERROR
);
}
return $isValid;
Expand Down
11 changes: 6 additions & 5 deletions Classes/Task/LogsizecheckTaskAdditionalFieldProvider.php
Expand Up @@ -15,7 +15,7 @@

use TYPO3\CMS\Backend\Utility\BackendUtility;
use TYPO3\CMS\Core\Localization\LanguageService;
use TYPO3\CMS\Core\Messaging\FlashMessage;
use TYPO3\CMS\Core\Type\ContextualFeedbackSeverity;
use TYPO3\CMS\Core\Utility\GeneralUtility;
use TYPO3\CMS\Scheduler\AbstractAdditionalFieldProvider;
use TYPO3\CMS\Scheduler\Controller\SchedulerModuleController;
Expand Down Expand Up @@ -91,10 +91,11 @@ public function getAdditionalFields(array &$taskInfo, $task, SchedulerModuleCont
. htmlspecialchars($fieldValue)
. '">';
$label = $lang->sL($this->languageFile . ':tasks.validate.'.$field);
$label = BackendUtility::wrapInHelp('logsizecheck', $fieldId, $label);
$additionalFields[$fieldId] = [
'code' => $fieldCode,
'label' => $label
'label' => $label,
'cshKey' => '',
'cshLabel' => $fieldId,
];
}

Expand Down Expand Up @@ -125,7 +126,7 @@ public function validateAdditionalFields(array &$submittedData, SchedulerModuleC
$isValid = false;
$this->addMessage(
$lang->sL($this->languageFile . ':tasks.validate.notificationEmail.invalid'),
FlashMessage::ERROR
ContextualFeedbackSeverity::ERROR
);
}
}
Expand All @@ -135,7 +136,7 @@ public function validateAdditionalFields(array &$submittedData, SchedulerModuleC
$isValid = false;
$this->addMessage(
$lang->sL($this->languageFile . ':tasks.validate.maxLogSize.invalid'),
FlashMessage::ERROR
ContextualFeedbackSeverity::ERROR
);
}
return $isValid;
Expand Down
3 changes: 2 additions & 1 deletion composer.json
Expand Up @@ -18,7 +18,8 @@
"source": "https://github.com/format-gmbh/format_t3tools"
},
"require": {
"typo3/cms-core": "^9.5 || ^10.4 || ^11.5"
"typo3/cms-core": "^12.2",
"typo3/cms-scheduler": "^12.2"
},
"autoload": {
"psr-4": {
Expand Down
4 changes: 2 additions & 2 deletions ext_emconf.php
Expand Up @@ -3,7 +3,7 @@
'title' => 'Tools for your TYPO3 installation',
'description' => 'This TYPO3 extension checks the size of all database tables and/or the size of all log files at regular intervals. If a certain size is exceeded, a mail can be sent. There is a separate scheduler task for each check.',
'category' => 'be',
'version' => '2.2.5',
'version' => '3.0.0',
'author' => 'Andreas Kessel',
'author_email' => 'typo3-dev@formatsoft.de',
'author_company' => 'format Software Gmbh (www.formatsoft.de)',
Expand All @@ -13,7 +13,7 @@
'clearCacheOnLoad' => 0,
'constraints' => [
'depends' => [
'typo3' => '9.5.17-11.5.99',
'typo3' => '12.2.0-12.2.99',
'scheduler' => ''
],
'conflicts' => [],
Expand Down
2 changes: 0 additions & 2 deletions ext_tables.php

This file was deleted.

0 comments on commit ddea554

Please sign in to comment.