X-Git-Url: https://git.heureux-cyclage.org/?a=blobdiff_plain;f=includes%2Fdeferred%2FDataUpdate.php;h=d2d8bd7a319ec1e1e049a64d8777db097288246e;hb=80847dcb32f4f6ecf198d3ff4c8bc71333832c75;hp=8d26460c9a176709311600277507b94a230adc8a;hpb=7e350ba150404509d764c96a5ea4dbc9aa51d3ac;p=lhc%2Fweb%2Fwiklou.git diff --git a/includes/deferred/DataUpdate.php b/includes/deferred/DataUpdate.php index 8d26460c9a..d2d8bd7a31 100644 --- a/includes/deferred/DataUpdate.php +++ b/includes/deferred/DataUpdate.php @@ -45,11 +45,12 @@ abstract class DataUpdate implements DeferrableUpdate { * Convenience method, calls doUpdate() on every DataUpdate in the array. * * @param DataUpdate[] $updates A list of DataUpdate instances - * @param string $mode Use "enqueue" to use the job queue when possible [Default: run] * @throws Exception * @deprecated Since 1.28 Use DeferredUpdates::execute() */ - public static function runUpdates( array $updates, $mode = 'run' ) { - DeferredUpdates::execute( $updates, $mode, DeferredUpdates::ALL ); + public static function runUpdates( array $updates ) { + foreach ( $updates as $update ) { + $update->doUpdate(); + } } }