Skip to content

Commit 2fc8146

Browse files
committed
Replace deprecated calls
1 parent eae6d62 commit 2fc8146

File tree

1 file changed

+1
-2
lines changed

1 file changed

+1
-2
lines changed

cli/migrate.php

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,6 @@
2828

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

3332
list($options, $unrecognized) = cli_get_params(
3433
[
@@ -138,7 +137,7 @@
138137
raise_memory_limit(MEMORY_EXTRA);
139138

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

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

0 commit comments

Comments
 (0)