summaryrefslogtreecommitdiff
path: root/demos/quickstart/protected/pages/Tutorial/fr
diff options
context:
space:
mode:
authorFabio Bas <ctrlaltca@gmail.com>2014-01-14 22:36:10 +0100
committerFabio Bas <ctrlaltca@gmail.com>2014-01-14 22:36:10 +0100
commit0a136fe37491281ada5084b6eb5a72d4ca8d948a (patch)
tree13570d66810a4c163760ebebb13377e9cb4f2068 /demos/quickstart/protected/pages/Tutorial/fr
parentef81c440220286dafb7b5f3c639d1d76e0f32f62 (diff)
Removed TJavascriptLogger from demos and tests
Any browser’s development tool is way better, and it stops exceptions from being catched by the browser’s console
Diffstat (limited to 'demos/quickstart/protected/pages/Tutorial/fr')
-rwxr-xr-xdemos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page5
1 files changed, 2 insertions, 3 deletions
diff --git a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page
index 66bb0e43..39d7f9e5 100755
--- a/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page
+++ b/demos/quickstart/protected/pages/Tutorial/fr/AjaxChat.page
@@ -430,7 +430,6 @@ and a button to send the message.
Text="Send" /&gt;
</div>
&lt;/com:TForm&gt;
-&lt;com:TJavascriptLogger /&gt;
</body>
</html>
</com:TTextHighlighter>
@@ -571,7 +570,7 @@ public function getUserMessages($user)
$content = '';
foreach($this->findAll('for_user = ?', $user) as $message)
$content .= $this->formatMessage($message);
- $this->deleteAll('for_user = ? OR created_on < ?',
+ $this->deleteAll('for_user = ? OR created_on < ?',
$user, time() - 300); //5 min inactivity
return $content;
}
@@ -580,7 +579,7 @@ protected function formatMessage($message)
{
$user = htmlspecialchars($message->from_user);
$content = htmlspecialchars($message->message);
- return "<div class=\"message\"><strong>{$user}:</strong>"
+ return "<div class=\"message\"><strong>{$user}:</strong>"
." <span>{$content}</span></div>";
}
</com:TTextHighlighter>