Skip to content

Commit 5133ce1

Browse files
committed
Update to new functional calls
Signed-off-by: Riddhesh Sanghvi <riddheshsanghvi96@gmail.com>
1 parent 1d6e796 commit 5133ce1

1 file changed

Lines changed: 2 additions & 2 deletions

File tree

src/Cron_Command.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,7 @@ public function add( $args, $assoc_args ) {
7575
EE\Utils\delem_log( 'ee cron add start' );
7676

7777
if ( ! isset( $args[0] ) || $args[0] !== 'host' ) {
78-
$args = EE\Utils\set_site_arg( $args, 'cron' );
78+
$args = EE\SiteUtils\auto_site_name( $args, 'cron', __FUNCTION__ );
7979
}
8080

8181
$site = EE\Utils\remove_trailing_slash( $args[0] );
@@ -219,7 +219,7 @@ public function _list( $args, $assoc_args ) {
219219
$all = EE\Utils\get_flag_value( $assoc_args, 'all' );
220220

221221
if ( ( ! isset( $args[0] ) || $args[0] !== 'host' ) && ! $all ) {
222-
$args = EE\Utils\set_site_arg( $args, 'cron' );
222+
$args = EE\SiteUtils\auto_site_name( $args, 'cron', 'list' );
223223
}
224224

225225
if ( isset( $args[0] ) ) {

0 commit comments

Comments
 (0)