X-Git-Url: http://git.cyclocoop.org//%22javascript:ModifierStyle%28%27%22.%24id.%22%27%29/%22?a=blobdiff_plain;f=includes%2FGlobalFunctions.php;h=06f95acaded2bb4ac926e9922e8c85b0dda46f8c;hb=0f5032050221ac219c5e04bc6b18571abfa5c175;hp=7a5a5d8489cf80588b35aefb004f8b670e8ce95f;hpb=edf7224639b6f45c0e6762a664cfb2e84beb8e0a;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/GlobalFunctions.php b/includes/GlobalFunctions.php index 7a5a5d8489..06f95acade 100644 --- a/includes/GlobalFunctions.php +++ b/includes/GlobalFunctions.php @@ -1845,7 +1845,7 @@ function wfHttpError( $code, $label, $desc ) { function wfResetOutputBuffers( $resetGzipEncoding = true ) { if ( $resetGzipEncoding ) { // Suppress Content-Encoding and Content-Length - // headers from 1.10+s wfOutputHandler + // headers from OutputHandler::handle. global $wgDisableOutputCompression; $wgDisableOutputCompression = true; } @@ -2327,6 +2327,8 @@ function wfShellExec( $cmd, &$retval = null, $environ = [], ->limits( $limits ) ->includeStderr( $includeStderr ) ->profileMethod( $profileMethod ) + // For b/c + ->restrict( Shell::RESTRICT_NONE ) ->execute(); } catch ( ProcOpenError $ex ) { $retval = -1; @@ -2360,23 +2362,13 @@ function wfShellExecWithStderr( $cmd, &$retval = null, $environ = [], $limits = [ 'duplicateStderr' => true, 'profileMethod' => wfGetCaller() ] ); } -/** - * Formerly set the locale for locale-sensitive operations - * - * This is now done in Setup.php. - * - * @deprecated since 1.30, no longer needed - * @see $wgShellLocale - */ -function wfInitShellLocale() { - wfDeprecated( __FUNCTION__, '1.30' ); -} - /** * Generate a shell-escaped command line string to run a MediaWiki cli script. * Note that $parameters should be a flat array and an option with an argument * should consist of two consecutive items in the array (do not use "--option value"). * + * @deprecated since 1.31, use Shell::makeScriptCommand() + * * @param string $script MediaWiki cli script path * @param array $parameters Arguments and options to the script * @param array $options Associative array of options: @@ -3019,7 +3011,7 @@ function wfWaitForSlaves( $ifWritesSince = null, $wiki = false, $cluster = false, $timeout = null ) { if ( $timeout === null ) { - $timeout = wfIsCLI() ? 86400 : 10; + $timeout = wfIsCLI() ? 60 : 10; } if ( $cluster === '*' ) {