Issue Bug Closed

#22162Deprecation log for IMAGE.alttext does not work

Sebastian Michaelsen 02/23/10, 11:11 updated 10/02/18, 12:25

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)

Reviews 0

No change resolves or names this issue in its commit message, and no comment links one.