Skip to content

Commit 24e86b5

Browse files
committed
[TASK] Resolve warnings in deprecation log of TYPO3 7.6
Remove contentObject->RECORDS() in contentViewHelper Conditional usage of getValue() or getValueAttribute() in SelectFieldViewHelper Remove dependency "cms" in ext_emconf.php Add todo comments for every condition related: #71604
1 parent 286f219 commit 24e86b5

8 files changed

+26
-4
lines changed

Classes/Utility/BackendUtility.php

+3
Original file line numberDiff line numberDiff line change
@@ -58,6 +58,7 @@ public static function isBackendAdmin()
5858
* @param int $identifier
5959
* @param bool $addReturnUrl
6060
* @return string
61+
* @todo remove condition for TYPO3 6.2 in upcoming major version
6162
*/
6263
public static function createEditUri($tableName, $identifier, $addReturnUrl = true)
6364
{
@@ -88,6 +89,7 @@ public static function createEditUri($tableName, $identifier, $addReturnUrl = tr
8889
* Get return URL from current request
8990
*
9091
* @return string
92+
* @todo remove condition for TYPO3 6.2 in upcoming major version
9193
*/
9294
protected static function getReturnUrl()
9395
{
@@ -161,6 +163,7 @@ public static function getPidFromBackendPage()
161163
*
162164
* @param string $moduleName Name of the module
163165
* @return string Calculated URL
166+
* @todo remove condition for TYPO3 6.2 in upcoming major version
164167
*/
165168
public static function getModuleUrl($moduleName)
166169
{

Classes/Utility/ConfigurationUtility.php

+1
Original file line numberDiff line numberDiff line change
@@ -157,6 +157,7 @@ public static function getDevelopmentContextEmail()
157157
*
158158
* @param string $fileName
159159
* @return string
160+
* @todo remove condition for TYPO3 6.2 in upcoming major version
160161
*/
161162
public static function getIconPath($fileName)
162163
{

Classes/ViewHelpers/Condition/IsCompatVersionViewHelper.php

+1
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ class IsCompatVersionViewHelper extends AbstractViewHelper
1919
*
2020
* @param string $versionNumber Minimum branch number required format x.y
2121
* @return bool
22+
* @todo remove condition for TYPO3 6.2 in upcoming major version
2223
*/
2324
public function render($versionNumber)
2425
{

Classes/ViewHelpers/Form/SelectFieldViewHelper.php

+15
Original file line numberDiff line numberDiff line change
@@ -130,4 +130,19 @@ protected function isSelectedAlternativeForArray($option)
130130
}
131131
return false;
132132
}
133+
134+
/**
135+
* Get value conditional to TYPO3 version
136+
*
137+
* @return mixed
138+
* @todo remove condition for TYPO3 6.2 in upcoming major version
139+
*/
140+
public function getValue()
141+
{
142+
if (method_exists($this, 'getValueAttribute')) {
143+
return parent::getValueAttribute();
144+
} else {
145+
return parent::getValue();
146+
}
147+
}
133148
}

Classes/ViewHelpers/Misc/ContentElementViewHelper.php

+2-2
Original file line numberDiff line numberDiff line change
@@ -26,11 +26,11 @@ class ContentElementViewHelper extends AbstractViewHelper
2626
*/
2727
public function render($uid)
2828
{
29-
$conf = array(
29+
$configuration = array(
3030
'tables' => 'tt_content',
3131
'source' => (int) $uid,
3232
'dontCheckPid' => 1
3333
);
34-
return $this->contentObject->RECORDS($conf);
34+
return $this->contentObject->cObjGetSingle('RECORDS', $configuration);
3535
}
3636
}

Configuration/TCA/tx_powermail_domain_model_mails.php

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
'--div--;LLL:EXT:cms/locallang_ttc.xml:tabs.access, hidden, starttime, endtime';
1717
$rteIconPath = 'EXT:backend/Resources/Public/Images/FormFieldWizard/wizard_rte.gif';
1818
if (!GeneralUtility::compat_version('7.6')) {
19+
// todo remove condition for TYPO3 6.2 in upcoming major version
1920
$typeDefault = str_replace('body', 'body;;;richtext[]', $typeDefault);
2021
$rteIconPath = 'wizard_rte2.gif';
2122
}

ext_emconf.php

+1-2
Original file line numberDiff line numberDiff line change
@@ -38,8 +38,7 @@
3838
'depends' => array(
3939
'typo3' => '6.2.7-7.99.99',
4040
'extbase' => '6.2.0-7.99.99',
41-
'fluid' => '6.2.0-7.99.99',
42-
'cms' => '',
41+
'fluid' => '6.2.0-7.99.99'
4342
),
4443
'conflicts' => array(),
4544
'suggests' => array(),

ext_tables.php

+2
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,7 @@
1818

1919
/**
2020
* Include Backend Module
21+
* @todo remove condition for TYPO3 6.2 in upcoming major version
2122
*/
2223
if (
2324
TYPO3_MODE === 'BE' &&
@@ -46,6 +47,7 @@
4647

4748
/**
4849
* Include Flexform
50+
* @todo remove condition for TYPO3 6.2 in upcoming major version
4951
*/
5052
// Pi1
5153
$fileName = 'FlexformPi1.xml';

0 commit comments

Comments
 (0)