Made text profiling actually work with load.php
Change-Id: I8d28ad8669e8c2f5d7025fe67fb75d0551975e07
This commit is contained in:
parent
061904a913
commit
3ca6ab1031
2 changed files with 2 additions and 1 deletions
|
|
@ -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";
|
||||
}
|
||||
|
|
|
|||
1
load.php
1
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.
|
||||
|
|
|
|||
Loading…
Reference in a new issue