mirror of
https://github.com/silverstripe/silverstripe-framework
synced 2024-10-22 12:05:37 +00:00
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:
parent
0c684b8061
commit
747b0996fe
2
main.php
2
main.php
@ -119,5 +119,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…
x
Reference in New Issue
Block a user