From fd77f4f95a20eacf40717bd3eacb940089dd62e5 Mon Sep 17 00:00:00 2001 From: Timo Tijhof Date: Thu, 12 Oct 2017 00:47:28 +0100 Subject: [PATCH] SpecialRunJobs: Remove unused JSON response In preparation of making SpecialRunJobs a normal special page that doesn't override output handling, but instead uses normal HTML-based responses for sync, and DeferredUpdates for async, start by removing the text/plain JSON response it currently has (also to verify that it really isn't used). Bug: T175146 Change-Id: I8621c4e2ba94a7d312adaf04a46e1a214af909fe --- includes/specials/SpecialRunJobs.php | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/includes/specials/SpecialRunJobs.php b/includes/specials/SpecialRunJobs.php index cb1e892e2f..73fe70f07b 100644 --- a/includes/specials/SpecialRunJobs.php +++ b/includes/specials/SpecialRunJobs.php @@ -99,13 +99,13 @@ class SpecialRunJobs extends UnlistedSpecialPage { // Do all of the specified tasks... if ( in_array( 'jobs', explode( '|', $params['tasks'] ) ) ) { $runner = new JobRunner( LoggerFactory::getInstance( 'runJobs' ) ); - $response = $runner->run( [ + $runner->run( [ 'type' => $params['type'], 'maxJobs' => $params['maxjobs'] ? $params['maxjobs'] : 1, 'maxTime' => $params['maxtime'] ? $params['maxjobs'] : 30 ] ); if ( !$params['async'] ) { - print FormatJson::encode( $response, true ); + print "Done\n"; } } } -- 2.20.1