naked br appearing when attaching and textplain
This commit is contained in:
		
					parent
					
						
							
								a742199035
							
						
					
				
			
			
				commit
				
					
						e6330e3b96
					
				
			
		
					 1 changed files with 6 additions and 1 deletions
				
			
		| 
						 | 
				
			
			@ -98,8 +98,13 @@ function wall_attach_post(&$a) {
 | 
			
		|||
		killme();
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	echo  '<br /><br />[attachment]' . $r[0]['id'] . '[/attachment]' . '<br />';
 | 
			
		||||
	$lf = '<br />';
 | 
			
		||||
 | 
			
		||||
	if(local_user() && intval(get_pconfig(local_user(),'system','plaintext')))
 | 
			
		||||
		$lf = "\n";
 | 
			
		||||
 | 
			
		||||
	echo  $lf . $lf . '[attachment]' . $r[0]['id'] . '[/attachment]' . $lf;
 | 
			
		||||
	
 | 
			
		||||
	killme();
 | 
			
		||||
	// NOTREACHED
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue