[BUGFIX] Fix stdWrap for Click-to-enlarge
authorMarkus Klein <klein.t3@mfc-linz.at>
Wed, 11 May 2011 13:54:34 +0000 (15:54 +0200)
committerXavier Perseguers <typo3@perseguers.ch>
Thu, 12 May 2011 11:59:53 +0000 (13:59 +0200)
Due to a syntax error, stdWrap for the target attribute of
the click-to-enlarge image link is broken. (Nobrainer)

Change-Id: Ie107fe9d4ddcfe04d341755834c049487e205c2d
Resolves: #26757
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/2079
Reviewed-by: Björn Pedersen
Reviewed-by: Stefano Kowalke
Tested-by: Stefano Kowalke
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/cms/tslib/class.tslib_content.php

index ecf3a78..3f3ad13 100644 (file)
@@ -1457,7 +1457,7 @@ class tslib_cObj {
                                        // Create TARGET-attribute only if the right doctype is used
                                if (!t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2', $GLOBALS['TSFE']->xhtmlDoctype)) {
                                        $target = isset($conf['target.'])
                                        // Create TARGET-attribute only if the right doctype is used
                                if (!t3lib_div::inList('xhtml_strict,xhtml_11,xhtml_2', $GLOBALS['TSFE']->xhtmlDoctype)) {
                                        $target = isset($conf['target.'])
-                                               ? $this-stdWrap($conf['target'], $conf['target.'])
+                                               ? $this->stdWrap($conf['target'], $conf['target.'])
                                                : $conf['target'];
                                        if ($target) {
                                                $target = sprintf(' target="%s"', $target);
                                                : $conf['target'];
                                        if ($target) {
                                                $target = sprintf(' target="%s"', $target);