X-Git-Url: https://vcs.fsf.org/?a=blobdiff_plain;f=CRM%2FCore%2FMenu.php;h=02a288955259ca7f7ab574f56269051453891239;hb=01cc40738dc827c145bc599c0268faf30c304375;hp=eb0c1e85a7415c09f4a74ff17b6199401def38b2;hpb=49e5328671aec2d1a841fdd615b0d85e6c8fcfed;p=civicrm-core.git diff --git a/CRM/Core/Menu.php b/CRM/Core/Menu.php index eb0c1e85a7..02a2889552 100644 --- a/CRM/Core/Menu.php +++ b/CRM/Core/Menu.php @@ -126,9 +126,12 @@ class CRM_Core_Menu { if (strpos($key, '_callback') && strpos($value, '::') ) { + // FIXME Remove the rewrite at this level. Instead, change downstream call_user_func*($value) + // to call_user_func*(Civi\Core\Resolver::singleton()->get($value)). $value = explode('::', $value); } elseif ($key == 'access_arguments') { + // FIXME Move the permission parser to its own class (or *maybe* CRM_Core_Permission). if (strpos($value, ',') || strpos($value, ';') ) {