Skip to content

Commit

Permalink
Replace deprecated calls
Browse files Browse the repository at this point in the history
  • Loading branch information
sarjona committed Jan 20, 2025
1 parent eae6d62 commit 2fc8146
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions cli/migrate.php
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@

require(__DIR__ . '/../../../../config.php');
require_once("{$CFG->libdir}/clilib.php");
require_once("{$CFG->libdir}/cronlib.php");

list($options, $unrecognized) = cli_get_params(
[
Expand Down Expand Up @@ -138,7 +137,7 @@
raise_memory_limit(MEMORY_EXTRA);

// Emulate normal session - we use admin account by default.
cron_setup_user();
\core\cron::setup_user();

$humantimenow = date('r', time());

Expand Down

0 comments on commit 2fc8146

Please sign in to comment.