1
1
Fork 0

match schemeless activities per the latest activity spec

This commit is contained in:
Mike Macgirvin 2010-10-27 15:50:44 -07:00
commit f01e8743fc
2 changed files with 14 additions and 6 deletions

View file

@ -1288,3 +1288,11 @@ function logger($msg) {
@file_put_contents($logfile, datetime_convert() . ':' . session_id() . ' ' . $msg . "\n", FILE_APPEND);
return;
}}
if(! function_exists('activity_match')) {
function activity_match($haystack,$needle) {
if(($haystack === $needle) || (($basename($needle) === $haystack) && strstr($needle,NAMESPACE_ACTIVITY_SCHEMA)))
return true;
return false;
}}