[BUGFIX] Wrong 'target' generation in imagelinkwrap, making the generated page XHTML...
authorErnesto Baschny <ernst@cron-it.de>
Thu, 31 Mar 2011 08:36:09 +0000 (10:36 +0200)
committerErnesto Baschny <ernst@cron-it.de>
Thu, 31 Mar 2011 09:21:20 +0000 (11:21 +0200)
Change-Id: If3b34a0ca1be76d6f0fcef016858b2067e3efb1b
Resolves: #25311
Reviewed-on: http://review.typo3.org/1329
Reviewed-by: Philipp Kitzberger
Tested-by: Philipp Kitzberger
Reviewed-by: Ernesto Baschny
Tested-by: Ernesto Baschny
typo3/sysext/cms/tslib/class.tslib_content.php

index 866e5ac..746b4c3 100644 (file)
@@ -1460,7 +1460,7 @@ class tslib_cObj {
                                        $target = isset($conf['target.'])
                                                ? $this-stdWrap($conf['target'], $conf['target.'])
                                                : $conf['target'];
-                                       if(!$target) {
+                                       if ($target) {
                                                $target = sprintf(' target="%s"', $target);
                                        } else {
                                                $target = ' target="thePicture"';