summaryrefslogtreecommitdiff
path: root/lib
diff options
context:
space:
mode:
authorEvan Prodromou <evan@prodromou.name>2008-06-03 07:36:26 -0400
committerEvan Prodromou <evan@prodromou.name>2008-06-03 07:36:26 -0400
commit38b5ad6fd63439f53fc137c4b23f3ecd249f8790 (patch)
treecaacc203afc7017cdcbe14e39bb850bf4c725d3a /lib
parentefbae69aaed3376043bafd3bd99f83ec548ff130 (diff)
one more stab at type matching, plus debug message
darcs-hash:20080603113626-84dde-99a92331e3875d05e68919acea46392a0128938e.gz
Diffstat (limited to 'lib')
-rw-r--r--lib/omb.php10
1 files changed, 3 insertions, 7 deletions
diff --git a/lib/omb.php b/lib/omb.php
index c402e0876..9d4a327a9 100644
--- a/lib/omb.php
+++ b/lib/omb.php
@@ -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) {