Bug #22162

Deprecation log for IMAGE.alttext does not work

Added by Sebastian Michaelsen almost 10 years ago. Updated about 1 year ago.

Status:
Closed
Priority:
Should have
Category:
-
Target version:
-
Start date:
2010-02-23
Due date:
% Done:

0%

TYPO3 Version:
PHP Version:
Tags:
Complexity:
Is Regression:
Sprint Focus:

Description

Due to a typo no entry in the deprecation log is done when using the deprected IMAGE.alttext property.

if ($conf['altText'] || $conf['altText.']) {
$GLOBALS['TSFE']->logDeprecatedTyposcript('IMAGE.alttext');
}

Obviously does not make sense. I corrected the property names in the IF-Condition to lowercase. Additionally I merged the two nested IF-Clauses to one. This also solves the little issue that $conf['altText'] = $conf['alttext']; was assigned even if there is no $conf['alttext'] - an IF-Check is done anyway, so why not include the assignement in there. This should tweak performance a little bit.
(issue imported from #M13623)

alttext_deprecation.diff View (1.48 KB) Administrator Admin, 2010-02-23 11:11


Related issues

Related to TYPO3 Core - Bug #23371: Provide a reason for logDeprecatedTypoScript() Closed 2010-08-13

History

#1 Updated by Steffen Gebert over 9 years ago

Related to #10100 (rev 4842).

#2 Updated by Steffen Gebert over 9 years ago

Committed to
- trunk rev. 8660
- 4-4 rev. 8659

#3 Updated by Benni Mack about 1 year ago

  • Status changed from Resolved to Closed

Also available in: Atom PDF