Fixed issue #2714: In RTE htmlArea, unable to do an internal link with several parameters
[Packages/TYPO3.CMS.git] / t3lib / class.t3lib_timetrack.php
index 6491ed0..9789f52 100755 (executable)
@@ -2,7 +2,7 @@
 /***************************************************************
 *  Copyright notice
 *
-*  (c) 1999-2007 Kasper Skaarhoj (kasperYYYY@typo3.com)
+*  (c) 1999-2008 Kasper Skaarhoj (kasperYYYY@typo3.com)
 *  All rights reserved
 *
 *  This script is part of the TYPO3 project. The TYPO3 project is
@@ -217,15 +217,19 @@ class t3lib_timeTrack {
        /**
         * Set TSselectQuery - for messages in TypoScript debugger.
         *
-        * @param       string          Query string
+        * @param       array           Query array
         * @param       string          Message/Label to attach
         * @return      void
         */
-       function setTSselectQuery($query,$msg)  {
+       function setTSselectQuery(array $data,$msg='')  {
                end($this->currentHashPointer);
                $k = current($this->currentHashPointer);
 
-               $this->tsStackLog[$k]['selectQuery'][] = array('query'=>$query,'msg'=>$msg);
+               if (strlen($msg)) {
+                       $data['msg'] = $msg;
+               }
+
+               $this->tsStackLog[$k]['selectQuery'][] = $data;
        }
 
        /**
@@ -417,17 +421,7 @@ class t3lib_timeTrack {
                                }
                        }
                        if ($flag_queries && is_array($data['selectQuery'])) {
-                               reset($data['selectQuery']);
-                               while(list(,$v)=each($data['selectQuery'])) {
-                                       $res = $GLOBALS['TYPO3_DB']->sql_query('EXPLAIN '.$v['query']);
-                                       $v['mysql_error'] = $GLOBALS['TYPO3_DB']->sql_error();
-                                       if (!$GLOBALS['TYPO3_DB']->sql_error()) {
-                                               while($row = $GLOBALS['TYPO3_DB']->sql_fetch_assoc($res)) {
-                                                       $v['explain'][]=$row;
-                                               }
-                                       }
-                                       $msgArr[] = t3lib_div::view_array($v);
-                               }
+                               $msgArr[] = t3lib_div::view_array($data['selectQuery']);
                        }
                        if ($flag_content && strcmp($data['content'],'')) {
                                $maxlen = 120;
@@ -446,7 +440,7 @@ class t3lib_timeTrack {
                        $out.= '<tr>'.$item.'</tr>';
                        $c++;
                }
-               $out = '<table border="0" cellpadding="0" cellspacing="0">'.$out.'</table>';
+               $out = '<table border="0" cellpadding="0" cellspacing="0" summary="">'.$out.'</table>';
                return $out;
        }
 
@@ -482,13 +476,13 @@ class t3lib_timeTrack {
                                $LN = ($ac==$c)?'blank':'line';
                                $BTM = ($ac==$c)?'bottom':'';
                                $PM = is_array($arr[$k.'.']) ? ($deeper ? 'minus':'plus') : 'join';
-                               $this->tsStackLog[$v]['icons'] = $depthData.($first?'':'<img src="'.TYPO3_mainDir.'gfx/ol/'.$PM.$BTM.'.gif" width="18" height="16" valign="top" border="0" alt="" />');
+                               $this->tsStackLog[$v]['icons'] = $depthData.($first?'':'<img src="'.TYPO3_mainDir.'gfx/ol/'.$PM.$BTM.'.gif" width="18" height="16" align="top" border="0" alt="" />');
 
                                if (strlen($this->tsStackLog[$v]['content'])) {
                                        $content = str_replace($this->tsStackLog[$v]['content'],$v, $content);
                                }
                                if (is_array($arr[$k.'.'])) {
-                                       $this->tsStackLog[$v]['content'] = $this->fixContent($arr[$k.'.'], $this->tsStackLog[$v]['content'], $depthData.($first?'':'<img src="'.TYPO3_mainDir.'gfx/ol/'.$LN.'.gif" width="18" height="16" valign="top" border="0" alt="" />'), 0, $v);
+                                       $this->tsStackLog[$v]['content'] = $this->fixContent($arr[$k.'.'], $this->tsStackLog[$v]['content'], $depthData.($first?'':'<img src="'.TYPO3_mainDir.'gfx/ol/'.$LN.'.gif" width="18" height="16" align="top" border="0" alt="" />'), 0, $v);
                                } else {
                                        $this->tsStackLog[$v]['content'] = $this->fixCLen($this->tsStackLog[$v]['content'], $this->tsStackLog[$v]['value']);
                                        $this->tsStackLog[$v]['subtime'] = '';
@@ -541,7 +535,7 @@ class t3lib_timeTrack {
         * @return      string
         */
        function fw($str) {
-               return '<span style="font-family:Verdana,Arial,Helvetica,sans-serif; font-size:0.6em; color:black; vertical-align:top;">'.$str.'&nbsp;</span>';
+               return '<span style="font-family:Verdana,Arial,Helvetica,sans-serif; font-size:10px; color:black; vertical-align:top;">'.$str.'&nbsp;</span>';
        }
 
        /**