Skip to content

Commit

Permalink
Fix error message to show proper command name
Browse files Browse the repository at this point in the history
  • Loading branch information
abhijitrakas committed Dec 3, 2018
1 parent e8c554c commit 1f7c7c4
Showing 1 changed file with 2 additions and 7 deletions.
9 changes: 2 additions & 7 deletions src/Admin_Tools_Command.php
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@

class Admin_Tools_Command extends EE_Command {

/**
* @var string $command Name of the command being run.
*/
private $command;

/**
* @var Filesystem $fs Symfony Filesystem object.
*/
Expand Down Expand Up @@ -103,7 +98,7 @@ public function enable( $args, $assoc_args ) {
\EE\Auth\Utils\init_global_admin_tools_auth();

EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' );
$args = auto_site_name( $args, $this->command, __FUNCTION__ );
$args = auto_site_name( $args, 'admin-tools', __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 ) {
Expand Down Expand Up @@ -169,7 +164,7 @@ public function enable( $args, $assoc_args ) {
public function disable( $args, $assoc_args ) {

EE\Utils\delem_log( 'admin-tools ' . __FUNCTION__ . ' start' );
$args = auto_site_name( $args, $this->command, __FUNCTION__ );
$args = auto_site_name( $args, 'admin-tools', __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 ) {
Expand Down

0 comments on commit 1f7c7c4

Please # to comment.