live updates sort of working
This commit is contained in:
		
					parent
					
						
							
								6368bd1656
							
						
					
				
			
			
				commit
				
					
						fc8379b108
					
				
			
		
					 6 changed files with 68 additions and 50 deletions
				
			
		| 
						 | 
				
			
			@ -119,9 +119,15 @@ function network_content(&$a, $update = false) {
 | 
			
		|||
				}
 | 
			
		||||
			}
 | 
			
		||||
 | 
			
		||||
			if($update)
 | 
			
		||||
				$return_url = $_SESSION['return_url'];
 | 
			
		||||
			else
 | 
			
		||||
				$return_url = $_SESSION['return_url'] = $a->cmd;
 | 
			
		||||
 | 
			
		||||
 | 
			
		||||
			if($item['last-child']) {
 | 
			
		||||
				$comment = replace_macros($cmnt_tpl,array(
 | 
			
		||||
					'$return_path' => $a->cmd,
 | 
			
		||||
					'$return_path' => $_SESSION['return_url'],
 | 
			
		||||
					'$id' => $item['item_id'],
 | 
			
		||||
					'$parent' => $item['parent'],
 | 
			
		||||
					'$profile_uid' =>  $_SESSION['uid'],
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue