Merge pull request #5446 from atif-shaikh/CRM-14105
[civicrm-core.git] / CRM / Core / Menu.php
index eb0c1e85a7415c09f4a74ff17b6199401def38b2..02a288955259ca7f7ab574f56269051453891239 100644 (file)
@@ -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, ';')
           ) {