BUGFIX Disabled ?debug_profile=1 on live environment types

git-svn-id: svn://svn.silverstripe.com/silverstripe/open/modules/sapphire/trunk@80057 467b73ca-7a2a-4603-9d3b-597d59a354a9
This commit is contained in:
Ingo Schommer 2009-06-25 09:53:51 +00:00
parent 6fd387c99c
commit d2dc9ececc

View File

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