api4 - Adjust to new name
authorCiviCRM <info@civicrm.org>
Sun, 15 Sep 2019 03:48:45 +0000 (23:48 -0400)
committerColeman Watts <coleman@civicrm.org>
Tue, 17 Sep 2019 03:11:24 +0000 (23:11 -0400)
CRM/Api4/Page/Api4Explorer.php

index f06452548cb8ce576ad4e3bf0c247dbeb416b000..5566acde9fd818b6818603f86277ac1032c5694f 100644 (file)
@@ -5,13 +5,13 @@ class CRM_Api4_Page_Api4Explorer extends CRM_Core_Page {
   public function run() {
     $vars = [
       'operators' => \CRM_Core_DAO::acceptedSQLOperators(),
-      'basePath' => Civi::resources()->getUrl('org.civicrm.api4'),
+      'basePath' => Civi::resources()->getUrl('civicrm'),
       'schema' => (array) \Civi\Api4\Entity::get()->setChain(['fields' => ['$name', 'getFields']])->execute(),
       'links' => (array) \Civi\Api4\Entity::getLinks()->execute(),
     ];
     Civi::resources()
       ->addVars('api4', $vars)
-      ->addScriptFile('org.civicrm.api4', 'js/load-bootstrap.js')
+      ->addScriptFile('civicrm', 'js/load-bootstrap.js')
       ->addScriptFile('civicrm', 'bower_components/google-code-prettify/bin/prettify.min.js')
       ->addStyleFile('civicrm', 'bower_components/google-code-prettify/bin/prettify.min.css');