Made text profiling actually work with load.php
authorAaron Schulz <aschulz@wikimedia.org>
Tue, 31 Mar 2015 07:44:08 +0000 (00:44 -0700)
committerBryanDavis <bdavis@wikimedia.org>
Tue, 31 Mar 2015 17:51:50 +0000 (17:51 +0000)
Change-Id: I8d28ad8669e8c2f5d7025fe67fb75d0551975e07

includes/profiler/output/ProfilerOutputText.php
load.php

index d37d74f..d5a7180 100644 (file)
@@ -70,7 +70,7 @@ class ProfilerOutputText extends ProfilerOutput {
                                        print "<!--\n{$out}\n-->\n";
                                }
                        } elseif ( $contentType === 'text/javascript' ) {
-                               print "\n/*\n${$out}*/\n";
+                               print "\n/*\n{$out}*/\n";
                        } elseif ( $contentType === 'text/css' ) {
                                print "\n/*\n{$out}*/\n";
                        }
index f66cd5a..ef2df31 100644 (file)
--- a/load.php
+++ b/load.php
@@ -43,6 +43,7 @@ $configFactory = ConfigFactory::getDefaultInstance();
 $resourceLoader = new ResourceLoader( $configFactory->makeConfig( 'main' ) );
 $resourceLoader->respond( new ResourceLoaderContext( $resourceLoader, $wgRequest ) );
 
+Profiler::instance()->setTemplated( true );
 wfLogProfilingData();
 
 // Shut down the database.