]> git.mxchange.org Git - quix0rs-gnu-social.git/commitdiff
one more stab at type matching, plus debug message
authorEvan Prodromou <evan@prodromou.name>
Tue, 3 Jun 2008 11:36:26 +0000 (07:36 -0400)
committerEvan Prodromou <evan@prodromou.name>
Tue, 3 Jun 2008 11:36:26 +0000 (07:36 -0400)
darcs-hash:20080603113626-84dde-99a92331e3875d05e68919acea46392a0128938e.gz

lib/omb.php

index c402e087644e27ee8269cd0c2da39355b3cfa025..9d4a327a92c0c703fee750e19c3520f4551abf1b 100644 (file)
@@ -72,13 +72,9 @@ function omb_service_filter($type) {
 }
        
 function omb_match_service($service, $type) {
-       if ($service) {
-               $types = $service->matchTypes(array($type));
-               if (in_array($type, $types)) {
-                       return TRUE;
-               }
-       }
-       return FALSE;
+       common_debug('omb.php - omb_match_service called with args "'.omb_service_uri($service).
+                                '","'.$type.'"');
+       return in_array($type, $service->getTypes());
 }
 
 function omb_service_uri($service) {