From: Timo Tijhof Date: Wed, 11 Oct 2017 23:47:28 +0000 (+0100) Subject: SpecialRunJobs: Remove unused JSON response X-Git-Tag: 1.31.0-rc.0~1776^2~2 X-Git-Url: https://git.cyclocoop.org/%7B%24www_url%7Dadmin/compta/banques/%7B%7B%20url_for%28%27admin_users%27%29%20%7D%7D?a=commitdiff_plain;h=fd77f4f95a20eacf40717bd3eacb940089dd62e5;p=lhc%2Fweb%2Fwiklou.git 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 --- 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"; } } }