[TASK] Clean up typolink target and linktxt 95/47095/3
authorBenni Mack <benni@typo3.org>
Sat, 5 Mar 2016 12:59:20 +0000 (13:59 +0100)
committerBenni Mack <benni@typo3.org>
Sat, 5 Mar 2016 16:48:22 +0000 (17:48 +0100)
commit56069733bb63c1bf7a76d27f981c762d488470b7
treee2f3356f1eea29f5a379ffba069f248cd08e8af7
parent59c27e39e66e778dbfa20a8fe6bccfd2f2cbf074
[TASK] Clean up typolink target and linktxt

Rename $linktxt to $linkText.
Only evaluate target if forceTarget is not set.

Add a small helper method to call parseFunc on empty
$linkText that is used in 4 places within typoLink().

Resolves: #74318
Releases: master
Change-Id: I043ba3192be83ec6acf28cb88a287be1b8cd74fa
Reviewed-on: https://review.typo3.org/47095
Reviewed-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Tested-by: Mathias Schreiber <mathias.schreiber@wmdb.de>
Reviewed-by: Eugen Lang <laeu1011+gerrit@gmail.com>
Tested-by: Eugen Lang <laeu1011+gerrit@gmail.com>
Reviewed-by: Benni Mack <benni@typo3.org>
Tested-by: Benni Mack <benni@typo3.org>
typo3/sysext/frontend/Classes/ContentObject/ContentObjectRenderer.php