X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2FSiteConfiguration.php;h=2d1d961decc4b359099356dd75d7d764bc32cc09;hb=80f787fba3e8dcbf959f37f925a6f6a89979a5c0;hp=885f926fa276a96217a12bfba0739c94a979f304;hpb=17914cc990c375340b688900b7782f1d7d5339fc;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/SiteConfiguration.php b/includes/SiteConfiguration.php index 885f926fa2..2d1d961dec 100644 --- a/includes/SiteConfiguration.php +++ b/includes/SiteConfiguration.php @@ -274,7 +274,7 @@ class SiteConfiguration { * @param string $from * @param string $to * @param string|array $in - * @return string + * @return string|array */ function doReplace( $from, $to, $in ) { if ( is_string( $in ) ) { @@ -345,7 +345,7 @@ class SiteConfiguration { * @param string $setting ID of the setting name to retrieve * @param string $wiki Wiki ID of the wiki in question. * @param string $suffix The suffix of the wiki in question. - * @param array $var Reference The variable to insert the value into. + * @param array &$var Reference The variable to insert the value into. * @param array $params List of parameters. $.'key' is replaced by $value in all returned data. * @param array $wikiTags The tags assigned to the wiki. */ @@ -556,7 +556,7 @@ class SiteConfiguration { ] ); // ulimit5.sh breaks this call - $data = trim( wfShellExec( $cmd, $retVal, [], [ 'memory' => 0 ] ) ); + $data = trim( wfShellExec( $cmd, $retVal, [], [ 'memory' => 0, 'filesize' => 0 ] ) ); if ( $retVal != 0 || !strlen( $data ) ) { throw new MWException( "Failed to run getConfiguration.php." ); }