Merge "Revert "Apply IP blocks to X-Forwarded-For header""
[lhc/web/wiklou.git] / includes / profiler / ProfilerSimpleText.php
index 847e34f..37350bf 100644 (file)
@@ -50,7 +50,7 @@ class ProfilerSimpleText extends ProfilerSimple {
                                : 0; // profiling mismatch error?
                        uasort( $this->mCollated, array( 'self', 'sort' ) );
                        array_walk( $this->mCollated, array( 'self', 'format' ), $totalReal );
-                       if ( php_sapi_name() === 'cli' ) {
+                       if ( PHP_SAPI === 'cli' ) {
                                print "<!--\n".self::$out."\n-->\n";
                        } elseif ( $this->getContentType() === 'text/html' ) {
                                if ( $this->visible ) {