From f01e8743fcfd26cc44a6c808418773520c77fe84 Mon Sep 17 00:00:00 2001 From: Mike Macgirvin Date: Wed, 27 Oct 2010 15:50:44 -0700 Subject: match schemeless activities per the latest activity spec --- boot.php | 8 ++++++++ 1 file changed, 8 insertions(+) (limited to 'boot.php') diff --git a/boot.php b/boot.php index 5cb091eae..1c74cc156 100644 --- a/boot.php +++ b/boot.php @@ -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; +}} \ No newline at end of file -- cgit v1.2.3