BUGFIX Disabled ?debug_profile=1 on live environment types (merged from r80057)

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/branches/2.3@98230 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2010-02-04 19:25:48 +00:00 committed by Sam Minnee
parent 0c684b8061
commit 747b0996fe

View File

@ -119,5 +119,7 @@ Director::direct($url);
if (isset($_GET['debug_profile'])) {
Profiler::unmark('all_execution');
Profiler::show(isset($_GET['profile_trace']));
if(!Director::isLive()) {
Profiler::show(isset($_GET['profile_trace']));
}
}