api4 - Search for entities in core (for realz)
authorTim Otten <totten@civicrm.org>
Sun, 15 Sep 2019 19:24:57 +0000 (15:24 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 17 Sep 2019 03:11:24 +0000 (23:11 -0400)
Civi/Api4/Action/Entity/Get.php

index 4f75909524971e11d8ecb4d81ee9a8fb317046eb..47cb6286c77c952dd17b183f3c43589779d7cb0b 100644 (file)
@@ -25,7 +25,7 @@ class Get extends \Civi\Api4\Generic\BasicGetAction {
    */
   protected function getRecords() {
     $entities = [];
-    $locations = array_merge([\Civi::paths()->getPath('[civicrm.root]/.')],
+    $locations = array_merge([\Civi::paths()->getPath('[civicrm.root]/Civi.php')],
       array_column(\CRM_Extension_System::singleton()->getMapper()->getActiveModuleFiles(), 'filePath')
     );
     foreach ($locations as $location) {