Fixed indenting
authorMichael Stucki <michael.stucki@typo3.org>
Mon, 12 Dec 2005 21:03:51 +0000 (21:03 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Mon, 12 Dec 2005 21:03:51 +0000 (21:03 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@904 709f56b5-9817-0410-a4d7-c38de5d9e867

typo3/sysext/cms/tslib/class.tslib_content.php

index 9d85203..d1652b8 100755 (executable)
@@ -3963,36 +3963,36 @@ class tslib_cObj {
                                $key = intval($this->stdWrap($conf['returnKey'],$conf['returnKey.']));
                                $content = isset($valArr[$key]) ? $valArr[$key] : '';
                        } else {
-                               // calculate splitCount
-                       $splitCount = count($valArr);
-                       if ($conf['max'] && $splitCount>$conf['max']) {
-                               $splitCount=$conf['max'];
-                       }
-                       if ($conf['min'] && $splitCount<$conf['min']) {
-                               $splitCount=$conf['min'];
-                       }
-
-                       if ($conf['wrap'] || $conf['cObjNum']) {
-                               $splitArr=array();
-                               $splitArr['wrap']=$conf['wrap'];
-                               $splitArr['cObjNum']=$conf['cObjNum'];
-                               $splitArr = $GLOBALS['TSFE']->tmpl->splitConfArray($splitArr,$splitCount);
-                       }
-
-                       $content='';
-                       for($a=0;$a<$splitCount;$a++)   {
-                               $GLOBALS['TSFE']->register['SPLIT_COUNT']=$a;
-                               $value = ''.$valArr[$a];
-                               $this->data[$this->currentValKey] = $value;
-                               if ($splitArr[$a]['cObjNum']) {
-                                       $objName=intval($splitArr[$a]['cObjNum']);
-                                       $value = $this->stdWrap($this->cObjGet($conf[$objName.'.'],$objName.'.'),$conf[$objName.'.']);
-                               }
-                               if ($splitArr[$a]['wrap']) {
-                                       $value=$this->wrap($value,$splitArr[$a]['wrap']);
+                                       // calculate splitCount
+                               $splitCount = count($valArr);
+                               if ($conf['max'] && $splitCount>$conf['max'])   {
+                                       $splitCount=$conf['max'];
+                               }
+                               if ($conf['min'] && $splitCount<$conf['min'])   {
+                                       $splitCount=$conf['min'];
+                               }
+
+                               if ($conf['wrap'] || $conf['cObjNum'])  {
+                                       $splitArr=array();
+                                       $splitArr['wrap']=$conf['wrap'];
+                                       $splitArr['cObjNum']=$conf['cObjNum'];
+                                       $splitArr = $GLOBALS['TSFE']->tmpl->splitConfArray($splitArr,$splitCount);
+                               }
+
+                               $content='';
+                               for($a=0;$a<$splitCount;$a++)   {
+                                       $GLOBALS['TSFE']->register['SPLIT_COUNT']=$a;
+                                       $value = ''.$valArr[$a];
+                                       $this->data[$this->currentValKey] = $value;
+                                       if ($splitArr[$a]['cObjNum'])   {
+                                               $objName=intval($splitArr[$a]['cObjNum']);
+                                               $value = $this->stdWrap($this->cObjGet($conf[$objName.'.'],$objName.'.'),$conf[$objName.'.']);
+                                       }
+                                       if ($splitArr[$a]['wrap'])      {
+                                               $value=$this->wrap($value,$splitArr[$a]['wrap']);
+                                       }
+                                       $content.=$value;
                                }
-                               $content.=$value;
-                       }
                        }
                }
                return $content;
@@ -4013,7 +4013,7 @@ class tslib_cObj {
         * @see _parseFunc()
         */
        function parseFunc($theValue, $conf, $ref='') {
-               
+
                        // Fetch / merge reference, if any
                if ($ref)       {
                        $temp_conf = array(