From f3d649627974fcf9e6b2ded54b28eea83c1359aa Mon Sep 17 00:00:00 2001 From: Riddhesh Sanghvi Date: Thu, 30 Aug 2018 18:15:35 +0530 Subject: [PATCH] Update function acc to new namespace Signed-off-by: Riddhesh Sanghvi --- src/Admin_Tools_Command.php | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/Admin_Tools_Command.php b/src/Admin_Tools_Command.php index faca3eb..ff65555 100644 --- a/src/Admin_Tools_Command.php +++ b/src/Admin_Tools_Command.php @@ -15,6 +15,7 @@ use \Symfony\Component\Filesystem\Filesystem; use \Composer\Console\Application; use \Symfony\Component\Console\Input\ArrayInput; +use function EE\Site\Utils\auto_site_name; class Admin_Tools_Command extends EE_Command { @@ -100,7 +101,7 @@ public function install() { public function up( $args, $assoc_args ) { EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' ); - $args = EE\SiteUtils\auto_site_name( $args, $this->command, __FUNCTION__ ); + $args = auto_site_name( $args, $this->command, __FUNCTION__ ); $force = EE\Utils\get_flag_value( $assoc_args, 'force' ); $this->site_data = Site::find( EE\Utils\remove_trailing_slash( $args[0] ) ); if ( ! $this->site_data || ! $this->site_data->site_enabled ) { @@ -154,7 +155,7 @@ public function up( $args, $assoc_args ) { public function down( $args, $assoc_args ) { EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' ); - $args = EE\SiteUtils\auto_site_name( $args, $this->command, __FUNCTION__ ); + $args = auto_site_name( $args, $this->command, __FUNCTION__ ); $force = EE\Utils\get_flag_value( $assoc_args, 'force' ); $this->site_data = Site::find( EE\Utils\remove_trailing_slash( $args[0] ) ); if ( ! $this->site_data || ! $this->site_data->site_enabled ) {