mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 14:05:37 +02:00
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:
parent
6fd387c99c
commit
d2dc9ececc
2
main.php
2
main.php
@ -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']));
|
||||||
}
|
}
|
||||||
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user