Fixed xhprof inclusion of chamilo api - refs #6640

skala
Yannick Warnier 12 years ago
parent a8bbe11a34
commit 0bd9f57c90
  1. 2
      tests/xhprof/footer.php

@ -13,7 +13,7 @@ if (extension_loaded('xhprof')) {
$run_id = $xhprof_runs->save_run($xhprof_data, $profiler_namespace);
// url to the XHProf UI libraries (change the host name and path)
require_once __DIR__.'/../../main/inc/lib/main_api.lib.php';
require_once __DIR__.'/../../main/inc/lib/api.lib.php';
$url = api_get_path(WEB_PATH);
$profiler_url = sprintf($url.'tests/xhprof/xhprof_html/index.php?run=%s&source=%s', $run_id, $profiler_namespace);
$xhprof = '<br /><a class="btn btn-primary" href="'. $profiler_url .'" target="_blank">xhprof profiler output</a><br /><br />';

Loading…
Cancel
Save