Commit 51b77d4b authored by bgm's avatar bgm Committed by Aegir user
Browse files

Fix deprecated getUrlPath

parent a5ffc034
......@@ -159,7 +159,7 @@ function activityprofile_civicrm_post($op, $objectName, $objectId, &$objectRef)
// Detect if we are being called from remoteform
// and if so, set the correct Activity Type.
// CiviCRM core has other safeguards against this, so it's a bit of a loophole.
$path = CRM_Utils_System::getUrlPath();
$path = CRM_Utils_System::currentPath();
if ($path == 'civicrm/remoteform') {
// Copied from remoteform
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment