require_config.php 260 B

123456789101112
  1. <?php
  2. $amdConfig = _elgg_services()->amdConfig->getConfig();
  3. // Deps are loaded in page/elements/foot with require([...])
  4. unset($amdConfig['deps']);
  5. ?>
  6. // <script>
  7. if (typeof require == "undefined") {
  8. var require = <?php echo json_encode($amdConfig); ?>;
  9. }