mirror of
				https://github.com/Mibew/mibew.git
				synced 2025-11-04 04:15:19 +03:00 
			
		
		
		
	Use 'chat.thread.id' var instead of 'ct.chatThreadId' in templates
This commit is contained in:
		
							parent
							
								
									2c9e65b518
								
							
						
					
					
						commit
						f77021b82b
					
				@ -294,7 +294,7 @@ function setup_chatview(Thread $thread) {
 | 
				
			|||||||
	}
 | 
						}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	// Set thread params
 | 
						// Set thread params
 | 
				
			||||||
	$data['ct.chatThreadId'] = $thread->id;
 | 
						$data['chat.thread.id'] = $thread->id;
 | 
				
			||||||
	$data['ct.token'] = $thread->lastToken;
 | 
						$data['ct.token'] = $thread->lastToken;
 | 
				
			||||||
	$data['chat.title'] = topage(
 | 
						$data['chat.title'] = topage(
 | 
				
			||||||
		empty($group['vcchattitle'])
 | 
							empty($group['vcchattitle'])
 | 
				
			||||||
 | 
				
			|||||||
@ -44,7 +44,7 @@ if( !$email ) {
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
if( count($errors) > 0 ) {
 | 
					if( count($errors) > 0 ) {
 | 
				
			||||||
	$page['formemail'] = $email;
 | 
						$page['formemail'] = $email;
 | 
				
			||||||
	$page['ct.chatThreadId'] = $thread->id;
 | 
						$page['chat.thread.id'] = $thread->id;
 | 
				
			||||||
	$page['ct.token'] = $thread->lastToken;
 | 
						$page['ct.token'] = $thread->lastToken;
 | 
				
			||||||
	$page['level'] = "";
 | 
						$page['level'] = "";
 | 
				
			||||||
	$page = array_merge_recursive(
 | 
						$page = array_merge_recursive(
 | 
				
			||||||
 | 
				
			|||||||
@ -74,7 +74,7 @@
 | 
				
			|||||||
                            isAgent: ${if:agent}true${else:agent}false${endif:agent}
 | 
					                            isAgent: ${if:agent}true${else:agent}false${endif:agent}
 | 
				
			||||||
                        },
 | 
					                        },
 | 
				
			||||||
                        thread: {
 | 
					                        thread: {
 | 
				
			||||||
                            id:${page:ct.chatThreadId},
 | 
					                            id:${page:chat.thread.id},
 | 
				
			||||||
                            token:${page:ct.token}
 | 
					                            token:${page:ct.token}
 | 
				
			||||||
                        },
 | 
					                        },
 | 
				
			||||||
                        messageForm: {
 | 
					                        messageForm: {
 | 
				
			||||||
 | 
				
			|||||||
@ -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:ct.chatThreadId}"/><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:ct.token}"/><input type="hidden" name="level" value="${page:level}"/>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
	<div id="top2">
 | 
						<div id="top2">
 | 
				
			||||||
		<div id="logo">
 | 
							<div id="logo">
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
		Reference in New Issue
	
	Block a user