forked from GNUsocial/gnu-social
		
	one more stab at type matching, plus debug message
darcs-hash:20080603113626-84dde-99a92331e3875d05e68919acea46392a0128938e.gz
This commit is contained in:
		
							
								
								
									
										10
									
								
								lib/omb.php
									
									
									
									
									
								
							
							
						
						
									
										10
									
								
								lib/omb.php
									
									
									
									
									
								
							@@ -72,13 +72,9 @@ function omb_service_filter($type) {
 | 
				
			|||||||
}
 | 
					}
 | 
				
			||||||
	
 | 
						
 | 
				
			||||||
function omb_match_service($service, $type) {
 | 
					function omb_match_service($service, $type) {
 | 
				
			||||||
	if ($service) {
 | 
						common_debug('omb.php - omb_match_service called with args "'.omb_service_uri($service).
 | 
				
			||||||
		$types = $service->matchTypes(array($type));
 | 
									 '","'.$type.'"');
 | 
				
			||||||
		if (in_array($type, $types)) {
 | 
						return in_array($type, $service->getTypes());
 | 
				
			||||||
			return TRUE;
 | 
					 | 
				
			||||||
		}
 | 
					 | 
				
			||||||
	}
 | 
					 | 
				
			||||||
	return FALSE;
 | 
					 | 
				
			||||||
}
 | 
					}
 | 
				
			||||||
 | 
					
 | 
				
			||||||
function omb_service_uri($service) {
 | 
					function omb_service_uri($service) {
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user