Fixed bug #16384: Optimize stdWrap usage for TypoScript content element OTABLE (Thank...
authorSteffen Kamper <info@sk-typo3.de>
Tue, 28 Dec 2010 00:45:30 +0000 (00:45 +0000)
committerSteffen Kamper <info@sk-typo3.de>
Tue, 28 Dec 2010 00:45:30 +0000 (00:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@9930 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index c0be168..074d609 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -4,6 +4,7 @@
 
 2010-12-27  Steffen Kamper  <steffen@typo3.org>
 
+       * Fixed bug #16384: Optimize stdWrap usage for TypoScript content element OTABLE (Thanks to Jo Hasenau)
        * Fixed bug #16852: Bugfix: Grid View must be combined with Column View and get some visual usability enhancements (Thanks to Jo Hasenau)
        * Add sysext pagetree to required extension list
        * Fixed bug #16387: Optimize stdWrap usage for TypoScript content element QTOBJECT (Thanks to Jo Hasenau)
index 45b3e3d..68e8180 100644 (file)
@@ -42,11 +42,27 @@ class tslib_content_OffsetTable extends tslib_content_Abstract {
         * @return      string          Output
         */
        public function render($conf = array()) {
+               /** @var $controlTable tslib_tableOffset */
                $controlTable = t3lib_div::makeInstance('tslib_tableOffset');
-               if ($conf['tableParams']) {
-                       $controlTable->tableParams = $conf['tableParams'];
+
+               $tableParams = isset($conf['tableParams.'])
+                       ? $this->cObj->stdWrap($conf['tableParams'], $conf['tableParams.'])
+                       : $conf['tableParams'];
+               if ($tableParams) {
+                       $controlTable->tableParams = $tableParams;
+               }
+
+               $offset = isset($conf['offset.'])
+                       ? $this->cObj->tsdWrap($conf['offset'], $conf['offset.'])
+                       : $conf['offset'];
+
+               $content = $controlTable->start($this->cObj->cObjGet($conf), $offset);
+
+               if (isset($conf['stdWrap.'])) {
+                       $content = $this->cObj->stdWrap($content, $conf['stdWrap.']);
                }
-               return $controlTable->start($this->cObj->cObjGet($conf), $conf['offset']);
+
+               return $content;
        }
 
 }