Made text profiling actually work with load.php

Change-Id: I8d28ad8669e8c2f5d7025fe67fb75d0551975e07
This commit is contained in:
Aaron Schulz 2015-03-31 00:44:08 -07:00 committed by BryanDavis
parent 061904a913
commit 3ca6ab1031
2 changed files with 2 additions and 1 deletions

View 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";
}

View file

@ -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.