From 3ca6ab103166c0f12f7a192b14bdffced003c610 Mon Sep 17 00:00:00 2001 From: Aaron Schulz Date: Tue, 31 Mar 2015 00:44:08 -0700 Subject: [PATCH] Made text profiling actually work with load.php Change-Id: I8d28ad8669e8c2f5d7025fe67fb75d0551975e07 --- includes/profiler/output/ProfilerOutputText.php | 2 +- load.php | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/includes/profiler/output/ProfilerOutputText.php b/includes/profiler/output/ProfilerOutputText.php index d37d74f06e..d5a7180116 100644 --- a/includes/profiler/output/ProfilerOutputText.php +++ b/includes/profiler/output/ProfilerOutputText.php @@ -70,7 +70,7 @@ class ProfilerOutputText extends ProfilerOutput { print "\n"; } } elseif ( $contentType === 'text/javascript' ) { - print "\n/*\n${$out}*/\n"; + print "\n/*\n{$out}*/\n"; } elseif ( $contentType === 'text/css' ) { print "\n/*\n{$out}*/\n"; } diff --git a/load.php b/load.php index f66cd5a8ec..ef2df3126f 100644 --- 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. -- 2.20.1