X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fprofiler%2Foutput%2FProfilerOutputText.php;h=100304ffb2b7bb25ce23b199b03bd252b57bff6b;hb=4f4a620f8e5993f2c1ae8f2afbb999e42ee77471;hp=dc24f18102523d5109deb4a36405114d67d6f458;hpb=02f609e06889a172c64a863481cc5f692f86e64a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/profiler/output/ProfilerOutputText.php b/includes/profiler/output/ProfilerOutputText.php index dc24f18102..100304ffb2 100644 --- a/includes/profiler/output/ProfilerOutputText.php +++ b/includes/profiler/output/ProfilerOutputText.php @@ -59,7 +59,7 @@ class ProfilerOutputText extends ProfilerOutput { ); $contentType = $this->collector->getContentType(); - if ( PHP_SAPI === 'cli' ) { + if ( wfIsCLI() ) { print "\n"; } elseif ( $contentType === 'text/html' ) { $visible = isset( $this->params['visible'] ) ?