jenkins-bot has submitted this change and it was merged.
Change subject: Fix: Profiler instance
..
Fix: Profiler instance
Profiler is an abstract class. Chose factory method to get an instance.
Change-Id: I38c70d6e29c8c6d5b26c2675d8813d9b463cb027
---
M dumpHTML.php
1 file changed, 2 insertions(+), 2 deletions(-)
Approvals:
Reedy: Looks good to me, approved
jenkins-bot: Verified
diff --git a/dumpHTML.php b/dumpHTML.php
index 762ebf2..4df07a1 100644
--- a/dumpHTML.php
+++ b/dumpHTML.php
@@ -31,7 +31,7 @@
--oom-adj set /proc//oom_adj
--show-titleswrite each article title to stdout
--munge-title available munging algorithms: none, md5, windows
---group use the specified user group to read articles
+ --group use the specified user group to read articles
ENDS;
@@ -45,8 +45,8 @@
define( 'MW_CMDLINE_CALLBACK', 'wfSetupDump' );
function wfSetupDump() {
global $wgProfileToDatabase, $wgProfileSampleRate;
+ Profiler::instance();
// Override disabled profiling in maintenance scripts
- Profiler::setInstance( new Profiler() );
$wgProfileToDatabase = false;
$wgProfileSampleRate = 1;
}
--
To view, visit https://gerrit.wikimedia.org/r/157503
To unsubscribe, visit https://gerrit.wikimedia.org/r/settings
Gerrit-MessageType: merged
Gerrit-Change-Id: I38c70d6e29c8c6d5b26c2675d8813d9b463cb027
Gerrit-PatchSet: 2
Gerrit-Project: mediawiki/extensions/DumpHTML
Gerrit-Branch: master
Gerrit-Owner: Physikerwelt
Gerrit-Reviewer: Reedy
Gerrit-Reviewer: jenkins-bot <>
___
MediaWiki-commits mailing list
MediaWiki-commits@lists.wikimedia.org
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits