* Fixed a little bug in t3lib_div::debug() (missing <tr> after first row)
authorMichael Stucki <michael.stucki@typo3.org>
Wed, 30 Nov 2005 09:45:07 +0000 (09:45 +0000)
committerMichael Stucki <michael.stucki@typo3.org>
Wed, 30 Nov 2005 09:45:07 +0000 (09:45 +0000)
git-svn-id: https://svn.typo3.org/TYPO3v4/Core/trunk@892 709f56b5-9817-0410-a4d7-c38de5d9e867

ChangeLog
t3lib/class.t3lib_div.php
t3lib/class.t3lib_matchcondition.php

index 5b9c188..6f45911 100755 (executable)
--- a/ChangeLog
+++ b/ChangeLog
@@ -1,3 +1,7 @@
+2005-11-30  Michael Stucki  <michael@typo3.org>
+
+       * Fixed a little bug in t3lib_div::debug() (missing <tr> after first row)
+
 2005-11-29  Dmitry Dulepov  <typo3@fm-world.ru>
 
        * Workspace module uses own classes for editing/creating workspaces (no permission check yet!)
@@ -10,7 +14,7 @@
 
 2005-11-27  Jan-Erik Revsbech  <jer@moccompany.com>
 
-       * Implemented Gremlin 1660: typolink now supports the title attribute (With stdWrap). Additionally the <link> tag used in conjunction with the rte now supports a fourth parameter. In addition to pageid target and class, the fourth parameter is the title of the resulting link.
+       * Implemented Gremlin 1660: typolink now supports the title attribute (with stdWrap). Additionally the <link> tag used in conjunction with the RTE now supports a fourth parameter. In addition to pageid target and class, the fourth parameter is the title of the resulting link.
 
 2005-11-25  Martin Kutschker  <martin.t.kutschker@blackbox.net>
 
index abc7cb3..de6b0f2 100755 (executable)
@@ -2472,9 +2472,9 @@ class t3lib_div {
         * @return      void
         */
        function debug($var="",$brOrHeader=0)   {
-               if ($brOrHeader && !t3lib_div::testInt($brOrHeader)) {
-                       echo '<table border="0" cellpadding="0" cellspacing="0" bgcolor="white" style="border:0px; margin-top:3px; margin-bottom:3px;"><tr><td style="background-color:#bbbbbb; font-family: verdana,arial; font-weight: bold; font-size: 10px;">'.htmlspecialchars((string)$brOrHeader).'</td></tr><td>';
-               } elseif ($brOrHeader<0) {
+               if ($brOrHeader && !t3lib_div::testInt($brOrHeader))    {
+                       echo '<table border="0" cellpadding="0" cellspacing="0" bgcolor="white" style="border:0px; margin-top:3px; margin-bottom:3px;"><tr><td style="background-color:#bbbbbb; font-family: verdana,arial; font-weight: bold; font-size: 10px;">'.htmlspecialchars((string)$brOrHeader).'</td></tr><tr><td>';
+               } elseif ($brOrHeader<0)        {
                        for($a=0;$a<abs(intval($brOrHeader));$a++){echo '<br />';}
                }
 
@@ -2484,15 +2484,15 @@ class t3lib_div {
                        echo '<b>|Object:<pre>';
                        print_r($var);
                        echo '</pre>|</b>';
-               } elseif ((string)$var!='') {
+               } elseif ((string)$var!='')     {
                        echo '<b>|'.htmlspecialchars((string)$var).'|</b>';
                } else {
                        echo '<b>| debug |</b>';
                }
 
-               if ($brOrHeader && !t3lib_div::testInt($brOrHeader)) {
+               if ($brOrHeader && !t3lib_div::testInt($brOrHeader))    {
                        echo '</td></tr></table>';
-               } elseif ($brOrHeader>0) {
+               } elseif ($brOrHeader>0)        {
                        for($a=0;$a<intval($brOrHeader);$a++){echo '<br />';}
                }
        }
index a187033..d13b30a 100644 (file)
@@ -292,7 +292,7 @@ class t3lib_matchCondition {
                                        if ($pre &&
                                                !t3lib_div::isFirstPartOfStr(trim($funcName),$pre) &&
                                                !t3lib_div::isFirstPartOfStr(trim($funcName),'tx_')
-                                               )       {
+                                       )       {
                                                if (is_object($GLOBALS['TT']))  $GLOBALS['TT']->setTSlogMessage('Match condition: Function "'.$funcName.'" was not prepended with "'.$pre.'"',3);
                                                return false;
                                        }