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 <N>        set /proc/<pid>/oom_adj
        --show-titles        write each article title to stdout
        --munge-title <HOW>  available munging algorithms: none, md5, windows
-    --group <group>      use the specified user group to read articles
+       --group <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 <[email protected]>
Gerrit-Reviewer: Reedy <[email protected]>
Gerrit-Reviewer: jenkins-bot <>

_______________________________________________
MediaWiki-commits mailing list
[email protected]
https://lists.wikimedia.org/mailman/listinfo/mediawiki-commits

Reply via email to