summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--HISTORY3
-rw-r--r--demos/personal/protected/Pages/Home.page1
-rw-r--r--framework/Util/TLogRouter.php15
3 files changed, 12 insertions, 7 deletions
diff --git a/HISTORY b/HISTORY
index 42bd6c30..0e5fc14c 100644
--- a/HISTORY
+++ b/HISTORY
@@ -1,7 +1,8 @@
Version 3.0.0 May 1, 2006
=========================
BUG: Ticket#131 - TImageMap and TLinkButton continue to postback even client validator fails (Wei)
-BUT: Non-control components can now use expressions in their properties (Qiang)
+BUG: Ticket#135 - TBrowserLogRoute reports wrong timings (Qiang)
+BUG: Non-control components can now use expressions in their properties (Qiang)
BUG: TControl.Visible did not make use of overriden getVisible() (Qiang)
BUG: TWizard did not stop navigation upon a validation failure (Qiang)
ENH: TButton, TImageButton and TLinkButton now implement IButtonControl interface (Qiang)
diff --git a/demos/personal/protected/Pages/Home.page b/demos/personal/protected/Pages/Home.page
index bd8bd2c7..204d4c6f 100644
--- a/demos/personal/protected/Pages/Home.page
+++ b/demos/personal/protected/Pages/Home.page
@@ -1,4 +1,3 @@
<com:TContent ID="main">
main content
-<com:TTextBox ID="TextBox" />
</com:TContent> \ No newline at end of file
diff --git a/framework/Util/TLogRouter.php b/framework/Util/TLogRouter.php
index 06d70b1e..234d00e3 100644
--- a/framework/Util/TLogRouter.php
+++ b/framework/Util/TLogRouter.php
@@ -595,13 +595,18 @@ class TBrowserLogRoute extends TLogRoute
$even = true;
$response = $this->getApplication()->getResponse();
$response->write($this->renderHeader());
- foreach($logs as $log)
+ for($i=0,$n=count($logs);$i<$n;++$i)
{
- $timing['total'] = $log[3] - $first;
- $timing['delta'] = $log[3] - $prev;
+ //$timing['total'] = $log[3] - $first;
+ //$timing['delta'] = $log[3] - $prev;
+ $timing['total'] = $logs[$i][3] - $first;
+ if ($i<$n-1)
+ $timing['delta'] = $logs[$i+1][3] - $logs[$i][3];
+ else
+ $timing['delta'] = '?';
$timing['even'] = !($even = !$even);
- $prev=$log[3];
- $response->write($this->renderMessage($log,$timing));
+ //$prev=$log[3];
+ $response->write($this->renderMessage($logs[$i],$timing));
}
$response->write($this->renderFooter());
}