Corrected comment for maxWInText (tslib_content) and simplified calculation
authorMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 15 May 2006 19:47:38 +0000 (19:47 +0000)
committerMartin Kutschker <martin.t.kutschker@blackbox.net>
Mon, 15 May 2006 19:47:38 +0000 (19:47 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@1467 709f56b5-9817-0410-a4d7-c38de5d9e867

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

index 3944567..a14a6ff 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -2,6 +2,7 @@
 2006-05-15  Martin Kutschker  <martin.t.kutschker@blackbox.net>
 
        * Fix bug #3364: Changed t3lib_div::validPathStr() that it rejects files starting with ../ or containing /../, but allows ..
+       * Corrected comment for maxWInText (tslib_content) and simplified calculation
 
 2006-05-05  Stanislas Rolland  <stanislas.rolland@fructifor.ca>
 
index 0f45690..c389ace 100755 (executable)
@@ -816,8 +816,8 @@ class tslib_cObj {
                        $maxW = intval($this->stdWrap($conf['maxW'],$conf['maxW.']));
 
                        $maxWInText = intval($this->stdWrap($conf['maxWInText'],$conf['maxWInText.']));
-                       if (!$maxWInText)       {       // If maxWInText is not set, it's calculated to the 70 % of the max...
-                               $maxWInText = round($maxW/100*50);
+                       if (!$maxWInText)       {       // If maxWInText is not set, it's calculated to the 50 % of the max...
+                               $maxWInText = round($maxW/2);
                        }
 
                        if ($maxWInText && $contentPosition>=16)        {       // inText