[FEATURE] Capitalizing with stdWrap (TypoScript)
authorBenjamin Mack <benni@typo3.org>
Thu, 26 May 2011 21:28:03 +0000 (23:28 +0200)
committerAndreas Wolf <andreas.wolf@ikt-werk.de>
Mon, 6 Jun 2011 13:43:24 +0000 (15:43 +0200)
Add another stdWrap case option "capitalize"

Change-Id: I05e4c8850a80b302a9789415e4fe15a3127692b4
Resolves: #17896
Reviewed-on: http://review.typo3.org/2381
Reviewed-by: Fabien Udriot
Tested-by: Fabien Udriot
Reviewed-by: Stefan Neufeind
Reviewed-by: Georg Ringer
Tested-by: Georg Ringer
Reviewed-by: Andy Grunwald
Reviewed-by: Andreas Wolf
Tested-by: Andreas Wolf
typo3/sysext/cms/tslib/class.tslib_content.php

index 56bb8af..9c9fdae 100644 (file)
@@ -6412,6 +6412,9 @@ class tslib_cObj {
                        case 'lower' :
                                $theValue = $GLOBALS['TSFE']->csConvObj->conv_case($GLOBALS['TSFE']->renderCharset, $theValue, 'toLower');
                        break;
+                       case 'capitalize':
+                               $theValue = ucwords($theValue);
+                       break;
                }
                return $theValue;
        }