Remove share_header() function from mod/share
This commit is contained in:
		
					parent
					
						
							
								1f20111c80
							
						
					
				
			
			
				commit
				
					
						b9117ceddc
					
				
			
		
					 1 changed files with 0 additions and 19 deletions
				
			
		| 
						 | 
				
			
			@ -56,22 +56,3 @@ function share_init(App $a) {
 | 
			
		|||
	echo $o;
 | 
			
		||||
	exit();
 | 
			
		||||
}
 | 
			
		||||
 | 
			
		||||
/// @TODO Rewrite to handle over whole record array
 | 
			
		||||
function share_header($author, $profile, $avatar, $guid, $posted, $link) {
 | 
			
		||||
	$header = "[share author='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $author).
 | 
			
		||||
		"' profile='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $profile).
 | 
			
		||||
		"' avatar='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $avatar);
 | 
			
		||||
 | 
			
		||||
	if ($guid) {
 | 
			
		||||
		$header .= "' guid='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $guid);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	if ($posted) {
 | 
			
		||||
		$header .= "' posted='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $posted);
 | 
			
		||||
	}
 | 
			
		||||
 | 
			
		||||
	$header .= "' link='" . str_replace(["'", "[", "]"], ["'", "[", "]"], $link)."']";
 | 
			
		||||
 | 
			
		||||
	return $header;
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue