[BUGFIX] Fix stdWrap for Click-to-enlarge
authorMarkus Klein <klein.t3@mfc-linz.at>
Wed, 11 May 2011 23:22:28 +0000 (01:22 +0200)
committerXavier Perseguers <typo3@perseguers.ch>
Thu, 12 May 2011 11:59:07 +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: If5c82e36dab13f85728440e2410bf734df7b727a
Resolves: #26757
Releases: 4.6, 4.5
Reviewed-on: http://review.typo3.org/2087
Reviewed-by: Yves Poersch
Tested-by: Yves Poersch
Reviewed-by: Xavier Perseguers
Tested-by: Xavier Perseguers
typo3/sysext/cms/tslib/class.tslib_content.php

index 466d040..fecfb2b 100644 (file)
@@ -1458,7 +1458,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.'])
-                                               ? $this-stdWrap($conf['target'], $conf['target.'])
+                                               ? $this->stdWrap($conf['target'], $conf['target.'])
                                                : $conf['target'];
                                        if ($target) {
                                                $target = sprintf(' target="%s"', $target);