Skip to content
This repository has been archived by the owner on Sep 26, 2020. It is now read-only.

Commit

Permalink
renamed to replace and added in default file
Browse files Browse the repository at this point in the history
  • Loading branch information
Mte90 committed Mar 27, 2019
1 parent 576c963 commit ef59751
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 3 deletions.
4 changes: 4 additions & 0 deletions config/config.default.php
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,10 @@
'profiler.simple_url' => function($url) {
return preg_replace('/\=\d+/', '', $url);
},

//'profiler.replace_url' => function($url) {
// return str_replace('token', '', $url);
//},

'profiler.options' => array(),
);
6 changes: 3 additions & 3 deletions external/header.php
Original file line number Diff line number Diff line change
Expand Up @@ -145,9 +145,9 @@ function () {
$uri = $cmd . ' ' . implode(' ', array_slice($_SERVER['argv'], 1));
}

$clean_url = Xhgui_Config::read('profiler.clean_url');
if (is_callable($clean_url)) {
$uri = $clean_url($uri);
$replace_url = Xhgui_Config::read('profiler.replace_url');
if (is_callable($replace_url)) {
$uri = $replace_url($uri);
}

$time = array_key_exists('REQUEST_TIME', $_SERVER)
Expand Down

0 comments on commit ef59751

Please sign in to comment.