[FEATURE] Add missing stdWrap to the new "strPad" properties
[Packages/TYPO3.CMS.git] / typo3 / sysext / frontend / Classes / ContentObject / ContentObjectRenderer.php
index 0a24ef2..1229a5b 100644 (file)
@@ -2353,15 +2353,17 @@ class ContentObjectRenderer {
                // Padding on the right side is PHP-default
                $padType = STR_PAD_RIGHT;
                if (!empty($conf['strPad.']['length'])) {
-                       $length = intval($conf['strPad.']['length']);
+                       $length = isset($conf['strPad.']['length.']) ? $this->stdWrap($conf['strPad.']['length'], $conf['strPad.']['length.']) : $conf['strPad.']['length'];
+                       $length = intval($length);
                }
                if (!empty($conf['strPad.']['padWith'])) {
-                       $padWith = $conf['strPad.']['padWith'];
+                       $padWith = isset($conf['strPad.']['padWith.']) ? $this->stdWrap($conf['strPad.']['padWith'], $conf['strPad.']['padWith.']) : $conf['strPad.']['padWith'];
                }
                if (!empty($conf['strPad.']['type'])) {
-                       if (strtolower($conf['strPad.']['type']) === 'left') {
+                       $type = isset($conf['strPad.']['type.']) ? $this->stdWrap($conf['strPad.']['type'], $conf['strPad.']['type.']) : $conf['strPad.']['type'];
+                       if (strtolower($type) === 'left') {
                                $padType = STR_PAD_LEFT;
-                       } elseif (strtolower($conf['strPad.']['type']) === 'both') {
+                       } elseif (strtolower($type) === 'both') {
                                $padType = STR_PAD_BOTH;
                        }
                }
@@ -7837,4 +7839,4 @@ class ContentObjectRenderer {
 
 }
 
-?>
\ No newline at end of file
+?>