restructure filters on services
darcs-hash:20080603111750-84dde-5b3eb37cc05ceaec991951338d55d38a2e0a5f2d.gz
This commit is contained in:
parent
a14833284b
commit
efbae69aae
10
lib/omb.php
10
lib/omb.php
@ -72,11 +72,13 @@ function omb_service_filter($type) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function omb_match_service($service, $type) {
|
function omb_match_service($service, $type) {
|
||||||
if ($service && $service->matchTypes(array($type))) {
|
if ($service) {
|
||||||
return TRUE;
|
$types = $service->matchTypes(array($type));
|
||||||
} else {
|
if (in_array($type, $types)) {
|
||||||
return FALSE;
|
return TRUE;
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
return FALSE;
|
||||||
}
|
}
|
||||||
|
|
||||||
function omb_service_uri($service) {
|
function omb_service_uri($service) {
|
||||||
|
Loading…
Reference in New Issue
Block a user