Use 'chat.thread.token' var instead of 'ct.token' in templates

This commit is contained in:
Dmitriy Simushev 2013-02-18 13:14:05 +00:00
parent f77021b82b
commit fead1b65a1
4 changed files with 4 additions and 4 deletions

View File

@ -295,7 +295,7 @@ function setup_chatview(Thread $thread) {
// Set thread params // Set thread params
$data['chat.thread.id'] = $thread->id; $data['chat.thread.id'] = $thread->id;
$data['ct.token'] = $thread->lastToken; $data['chat.thread.token'] = $thread->lastToken;
$data['chat.title'] = topage( $data['chat.title'] = topage(
empty($group['vcchattitle']) empty($group['vcchattitle'])
? Settings::get('chattitle') ? Settings::get('chattitle')

View File

@ -45,7 +45,7 @@ if( !$email ) {
if( count($errors) > 0 ) { if( count($errors) > 0 ) {
$page['formemail'] = $email; $page['formemail'] = $email;
$page['chat.thread.id'] = $thread->id; $page['chat.thread.id'] = $thread->id;
$page['ct.token'] = $thread->lastToken; $page['chat.thread.token'] = $thread->lastToken;
$page['level'] = ""; $page['level'] = "";
$page = array_merge_recursive( $page = array_merge_recursive(
$page, $page,

View File

@ -75,7 +75,7 @@
}, },
thread: { thread: {
id:${page:chat.thread.id}, id:${page:chat.thread.id},
token:${page:ct.token} token:${page:chat.thread.token}
}, },
messageForm: { messageForm: {
${if:agent}${if:canpost} ${if:agent}${if:canpost}

View File

@ -8,7 +8,7 @@
<body class="bgbody"> <body class="bgbody">
<form name="mailThreadForm" method="post" action="${webimroot}/mail.php"><input type="hidden" name="style" value="${styleid}"/> <form name="mailThreadForm" method="post" action="${webimroot}/mail.php"><input type="hidden" name="style" value="${styleid}"/>
<input type="hidden" name="thread" value="${page:chat.thread.id}"/><input type="hidden" name="token" value="${page:ct.token}"/><input type="hidden" name="level" value="${page:level}"/> <input type="hidden" name="thread" value="${page:chat.thread.id}"/><input type="hidden" name="token" value="${page:chat.thread.token}"/><input type="hidden" name="level" value="${page:level}"/>
<div id="top2"> <div id="top2">
<div id="logo"> <div id="logo">