Fixed bug #16192: Optimize stdWrap usage for TypoScript content element COA (Thanks...
authorSteffen Kamper <info@sk-typo3.de>
Thu, 4 Nov 2010 00:41:14 +0000 (00:41 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Thu, 4 Nov 2010 00:41:14 +0000 (00:41 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9269 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
typo3/sysext/cms/tslib/content/class.tslib_content_contentobjectarray.php

index b02e9ed..a9a5a71 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,5 +1,6 @@
 2010-11-03  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #16192: Optimize stdWrap usage for TypoScript content element COA (Thanks to Jo Hasenau)
        * Fixed bug #16193: Optimize stdWrap usage for TypoScript content element COA_INT (Thanks to Jo Hasenau)
        * Fixed bug #16191: Optimize stdWrap usage for TypoScript content element CONTENT (Thanks to Jo Hasenau)
        * Fixed bug #16196: Optimize stdWrap usage for TypoScript content element CTABLE (Thanks to Jo Hasenau)
index cad2428..a3950d5 100644 (file)
@@ -47,10 +47,11 @@ class tslib_content_ContentObjectArray extends tslib_content_Abstract {
                        if ($this->cObj->checkIf($conf['if.'])) {
                                $this->cObj->includeLibs($conf);
                                $content = $this->cObj->cObjGet($conf);
-                               if ($conf['wrap']) {
-                                       $content = $this->cObj->wrap($content, $conf['wrap']);
+                               $wrap = isset($conf['wrap.']) ? $this->cObj->stdWrap($conf['wrap'], $conf['wrap.']) : $conf['wrap'];
+                               if ($wrap) {
+                                       $content = $this->cObj->wrap($content, $wrap);
                                }
-                               if ($conf['stdWrap.']) {
+                               if (isset($conf['stdWrap.'])) {
                                        $content = $this->cObj->stdWrap($content, $conf['stdWrap.']);
                                }
                        }
@@ -67,4 +68,4 @@ if (defined('TYPO3_MODE') && $TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/conte
        include_once ($TYPO3_CONF_VARS[TYPO3_MODE]['XCLASS']['tslib/content/class.tslib_content_contentobjectarray.php']);
 }
 
-?>
\ No newline at end of file
+?>