Skip to content

Commit

Permalink
Update to new functional calls
Browse files Browse the repository at this point in the history
Signed-off-by: Riddhesh Sanghvi <[email protected]>
  • Loading branch information
mrrobot47 committed Aug 6, 2018
1 parent 1d6e796 commit 5133ce1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/Cron_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ public function add( $args, $assoc_args ) {
EE\Utils\delem_log( 'ee cron add start' );

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

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

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

if ( isset( $args[0] ) ) {
Expand Down

0 comments on commit 5133ce1

Please sign in to comment.