dépôts
/
lhc
/
web
/
wiklou.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Merge "Upgrade wikimedia/remex-html to 2.0.1" into REL1_31
[lhc/web/wiklou.git]
/
includes
/
profiler
/
output
/
ProfilerOutputText.php
diff --git
a/includes/profiler/output/ProfilerOutputText.php
b/includes/profiler/output/ProfilerOutputText.php
index
dc24f18
..
100304f
100644
(file)
--- a/
includes/profiler/output/ProfilerOutputText.php
+++ b/
includes/profiler/output/ProfilerOutputText.php
@@
-59,7
+59,7
@@
class ProfilerOutputText extends ProfilerOutput {
);
$contentType = $this->collector->getContentType();
);
$contentType = $this->collector->getContentType();
- if (
PHP_SAPI === 'cli'
) {
+ if (
wfIsCLI()
) {
print "<!--\n{$out}\n-->\n";
} elseif ( $contentType === 'text/html' ) {
$visible = isset( $this->params['visible'] ) ?
print "<!--\n{$out}\n-->\n";
} elseif ( $contentType === 'text/html' ) {
$visible = isset( $this->params['visible'] ) ?